Forums
Toggle Search
E Ink Everything
Retro Gaming
ChatGPT & AI
Security
Mobile
Automotive
Computing
AR & VR
Online
Club CrackBerry
BlackBerry Forums
Other Categories
Answer / Ask a Question
Reviews
Deals
Contests
Newsletter
Help & How To
News & Rumors
Log in
or
Sign up
Brightness
Light Mode
Dark Mode
© Journey Commerce Inc.
Terms & Conditions
Privacy Policy
CREATE
YOUR
ACCOUNT
ASK A QUESTION
TRENDING:
Born 9-24-14 - Died 1-4-22 - Resurrection 9-24-24
179
How do i play music on blackberry hs-300
138
Black Screen, won’t turn on
137
NFC problems after SIM change
44
Forum
BlackBerry OS Phone Forums
More BlackBerry Phones
BlackBerry Storm Series
[How To] Get sound from the speaker in .75
02-17-09 02:22 PM
tools
Advanced Search
View First Unread
Show Printable Version
537
https://forums.crackberry.com/showthread.php?t=162411&s=&p=1705589&viewfull=1#post1705589
phrehnck
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
Like
0
264
https://forums.crackberry.com/showthread.php?t=162411&s=&p=1706537&viewfull=1#post1706537
voyagor
look at that! a developer helping other developers out. this is good stuff!
02-17-09 02:20 PM
Like
0
1,292
https://forums.crackberry.com/showthread.php?t=162411&s=&p=1706566&viewfull=1#post1706566
mike240se
SWEET, thanks for this man. (I assume this is in response to my pm)
02-17-09 02:22 PM
Like
0
Forum
BlackBerry OS Phone Forums
More BlackBerry Phones
BlackBerry Storm Series
[How To] Get sound from the speaker in .75
«
You might hate the storm....
|
.103 now installed.
»
LINK TO POST COPIED TO CLIPBOARD