[How To] Get sound from the speaker in .75
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! =)