AudioToolbox 在应用程序启动时降低音量

发布于 2024-12-20 10:27:59 字数 172 浏览 5 评论 0原文

在我的应用程序中,我使用 AudioToolbox 框架,以便可以使用 iSpeech SDK。如果正在播放音乐(在后台,来自 Apple 音乐应用程序),则当应用程序启动时,音乐会跳过(完全停止播放)片刻(半秒),然后以较小的音量恢复。我完全不确定为什么会发生这种情况,但谷歌对此没有任何可说的。有没有人遇到过这样的问题?谢谢!

In my app I use the AudioToolbox framework so that I can use the iSpeech SDK. If music is playing (in the background, from the Apple music app), when the app starts, the music skips (stops playing completely) for just a moment (half a second), then resumes at a diminished volume. I'm not at all sure why this is happening, but Google had nothing to say about it. Has anyone experienced a problem like this? Thanks!

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

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

发布评论

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

评论(1

待天淡蓝洁白时 2024-12-27 10:27:59

Core Audio 需要在音频输出路径中插入混音器,以便您的应用程序能够发出声音。 (将“跳过”视为拔出和插入跳线。)混音器为您的应用程序分配一些音量;音乐播放器的剩余电量不足 100%,因此音量减小。

Core Audio needs to insert a mixer in the audio output path so that your app has a way to make sounds. (Think of the "skip" as pulling out and plugging in patch cords.) The mixer allocates some volume to your app; what's left for the music player is less than 100%, thus the disminished volume.

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