• Post Reply Bookmark Topic Watch Topic
  • New Topic

SWT system sounds

 
Christophe Creelle
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was using a custom widget MessageDialog which appearently fires a windows "info" sound when opened.

Now I was wondering if it was possible playing system sounds with SWT like it is with spring ? Can't seem to find out how.
 
Lance Colton
Ranch Hand
Posts: 64
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
void beep(): Causes the system hardware to emit a short sound if it supports this capability.

other that that you would have to find the sound files in your C drive somewhere and play them. However then you get platform dependency issues, and would have to do the same thing for every platform. I'd personally just go with a beep, or download / create my own info noise.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!