开发者

Blackberry How to play sound (short[]) using the speaker of the device?

开发者 https://www.devze.com 2022-12-23 01:41 出处:网络
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

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...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号