1. phrehnck's Avatar
    just define the audio path explicitly. seems like .83+ correctly assumes the mmapi player will play out of the speaker or headset(if connected) correctly but .75 just directs all mmapi playback to the 3.5mm. heres a sample:

    pLayer = Manager.createPlayer(getClass().getResourceAsStrea m("/porn-music.mp3"), "audio/mp3");
    apc = (AudioPathControl) pLayer.getControl("AudioPathControl");
    apc.setAudioPath(AudioPathControl.AUDIO_PATH_HANDS FREE);
    apc.forceActive(true);
    apc=null;


    play with AudioPathControl. for more paths. you can even hook a listener so that youll be notified if a 3.5mm or a BT HS is connected or not.

    heres the import:
    import net.rim.device.api.media.control.AudioPathControl;



    Developers are allowed to donate too =P
    if(life==null) return;


    storm app devs unite! =)
    Last edited by phrehnck; 02-17-09 at 12:49 PM.
    02-17-09 12:45 PM
  2. voyagor's Avatar
    look at that! a developer helping other developers out. this is good stuff!
    02-17-09 02:20 PM
  3. mike240se's Avatar
    SWEET, thanks for this man. (I assume this is in response to my pm)
    02-17-09 02:22 PM
LINK TO POST COPIED TO CLIPBOARD