对于某些用户来说,系统声音不受设备音量的影响

发布于 2024-11-03 09:33:46 字数 860 浏览 2 评论 0原文

我有一个通用应用程序,它使用 SystemSounds 和 AVAudioPlayer 声音的组合。在我的所有设备上一切正常。然而,我收到了一些用户的报告,称无论设备的实际音量设置如何,系统声音似乎都以设备的完整音量级别播放。换句话说,按下设备侧面的硬件按钮会更改 AVAudioPlayer 声音,但系统声音始终保持最大音量。

以下是我迄今为止收集到的信息:

  • 其中一个用户的设备是 iPod touch 第 4 代,另一个是 iPad 2。我无权访问该型号的 iPod,但我可以访问用iPad 2测试没有问题。我还没有收到 iPhone 用户的报告,所以我认为这不是音乐音量和铃声音量,因为这些设备没有铃声。

  • 我已要求用户使用任务管理器完全退出应用程序,并重新启动其设备,但执行这两个步骤后问题仍然存在。

  • 我正在使用 MediaPlayback 类别并启用 MixWithOthers 来初始化音频会话,以控制 AVAudioPlayer 声音。我有另一个仅使用系统声音并且不初始化音频会话的应用程序,因此我要求其中一位用户尝试该应用程序。他报告说,该应用程序的声音也卡在最大音量。

谁能建议为什么会发生这种情况?或者是否有任何进一步的故障排除我应该要求这些用户做,因为我自己无法重复这个问题?

更新:也许我可以要求用户将我的应用程序中的音量行为与默认 Apple 应用程序或他们可以安装的简单免费应用程序中的音量进行比较 - 有人知道使用系统声音的应用程序吗?然后我至少可以判断问题是特定于我的应用程序还是普遍存在于设备中。

I have a universal app that uses a combination of SystemSounds and AVAudioPlayer sounds. Everything works fine on all of my devices. However, I've had a couple reports from users that the system sounds play at what seems to be the device's full volume level regardless of the actual volume level set for the device. In other words, pressing the hardware buttons on the side of the device changes the AVAudioPlayer sounds, but the system sounds remain at full volume at all times.

Here's the info I've been able to gather so far:

  • One of the users' devices is an iPod touch 4th generation and the other is an iPad 2. I don't have access to that iPod model, but I did test with an iPad 2 with no problems. I haven't had reports from iPhone users, so I don't think it's an issue of confusion between the music volume and ringer volume, because these devices don't have a ringer.

  • I've asked the users to fully quit the app using the task manager, and also to restart their devices, but the problem remained after both of these steps.

  • I'm initializing an audio session with the MediaPlayback category and with MixWithOthers enabled, to control the AVAudioPlayer sounds. I have another that only uses system sounds and doesn't initialize an audio session, so I asked one of the users to try that app. He reported that the sounds are stuck at full volume with that app, too.

Can anyone suggest why this might be happening? Or is there any further troubleshooting I should ask these users to do, since I can't repeat the problem myself?

Update: Perhaps I could ask users to compare the volume behavior in my apps to the volume in a default Apple app or a simple, free app they could install -- does anyone know of an app that uses system sounds? Then I could at least tell if the problem is specific to my app or general to the device.

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

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

发布评论

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

评论(1

一梦等七年七年为一梦 2024-11-10 09:33:46

“让我在这里修改一些内容,因为我刚刚发现了一个可以解决此问题的新设置。转到设置>声音>“使用按钮更改”。打开它。问题解决了!” @ https://discussions.apple.com/thread/2790023?threadID=2790023 ??

"Let me amend something here as I just discovered a new setting that FIXES this problem. Go to settings > sounds > "change with buttons". Turn it on. Problem solved!" @ https://discussions.apple.com/thread/2790023?threadID=2790023 ??

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