12-02-2010 12:40 AM
Hi i want to load a small mp3 file in my application, i was tried to use qnx api and i found qnx.ui.media, But how to load my mp3 file over there, can anyone help me on this ? or should i use Flash api to load audio file, if so please guide me.
12-02-2010 08:10 AM
You can use the standard Sound class (and possible SoundChannel class to manage afterwards).
var snd : Sound = new Sound( URLRequest( 'assets/sounds/music.mp3' ) );
snd.play();
More info here:
http://help.adobe.com/en_US/FlashPlatform/referenc
12-02-2010 08:49 AM
Yes i have implemented that, but one thing i want to know is will this playbook emulator supports the sound ? please respond
12-02-2010 09:03 AM
The current simulator does not send out sound at this time. There has not been any indications from BB that the Sound API would not be supported.
12-12-2010 10:24 AM
Is it just me or is the Event.Sound_Complete not firing?
It works in Stand Alone mode but when My Game wasn't working in VM so I went into debug mode and saw the event wasn't firing. Did I miss something?
12-12-2010 12:10 PM
Probably a typo, but it's Event.SOUND_COMPLETE. And yes, it seems to work fine for me.
12-12-2010 12:11 PM
Also, in case you did not see it on other threads, sound does not currently work in the simulator, so that might be the reason it is not firing.