Blackberry How to play sound (short[]) using the speaker of the device?
I am using Alert.startAudio to play an array of short values,
I want the same short[]
to be pla开发者_JAVA技巧yed using the phone speaker, how could I do this ?
I believe it is played with speaker by default!
But if it's not, try to use AudioPathControl
See BB KB How To - Specify Audio Path Routing
UPDATE
BB Developer Journals - The BlackBerry Alert Class:
The next two methods will start and stop an audio alert on the audio channel selected by the user. An audio channel can be the internal headset, speaker, earpiece or a Bluetooth® headset.
maybe this should be configured somewhere in device...
精彩评论