AudioToolbox 在应用程序启动时降低音量
在我的应用程序中,我使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.