How to play sound in MacOS widget?

Posted by omidomaru on Stack Overflow See other posts from Stack Overflow or by omidomaru
Published on 2010-04-01T09:26:08Z Indexed on 2010/04/01 9:33 UTC
Read the original article Hit count: 375

Filed under:
|
|

I want to play sound in my widget with this code:

var soundFile = "/sound.wav"; widget.playSound (soundFile);

But there is no sound.

Please help me. I tried to find something like System.Sound.playSound(soundFile), but have not found analogue for Mac OS.

© Stack Overflow or respective owner

Related posts about macosx

Related posts about wxwidgets