Blackberry 如何使用设备的扬声器播放声音(短[])?

发布于 2024-08-24 13:05:06 字数 211 浏览 3 评论 0原文

我正在使用 Alert.startAudio 播放短值数组, 我希望使用手机扬声器播放相同的 short[],我该怎么做?

I am using Alert.startAudio to play an array of short values,
I want the same short[] to be played using the phone speaker, how could I do this ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

抱猫软卧 2024-08-31 13:05:06

我相信它是默认使用扬声器播放的!
但如果不是,请尝试使用 AudioPathControl

请参阅BB KB 如何 - 指定音频路​​径路由

更新
BB 开发者日志 - BlackBerry 警报类

接下来的两种方法将在用户选择的音频通道上启动和停止音频警报。音频通道可以是内置耳机、扬声器、听筒或蓝牙®耳机。

也许这应该在设备中的某个地方配置...

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文