10-24-2008 08:51 AM
When I play midi through javax.microedition.media.Player and plugs headset, the midi music starts plays in the headset. But when the music player stops (player.stop()) and run again (player.start()), it starts play on the handset before loop end. When first midi loop is ended, it switches back to the headset.
How fix this issue? Please help.
setAudioPath can direct only on the selected output, but how I know what output is active now?
Blackberry 8100 184.108.40.206
10-24-2008 09:01 AM
Try to add a PlayerListener to your player and react on END_OF_MEDIA or CLOSED events ...
I ran into some related issue... player.start() starts an inner system "play" thread... stop was more like a request. PlayerListener was more helpful for me ...
10-24-2008 01:03 PM
You can use AudioPathControl.getAudioPath() to get the current route. The following example shows how to set the route.
How To - Specify Audio Path Routing
Article Number: DB-00575
10-30-2008 02:48 PM