iOS - AudioServicesPlayAlertSound 无法在 iPod 上运行?
我无法让 AudioServicesPlayAlertSound(kSystemSoundID_Vibrate)
使 ipod 发出蜂鸣声 - 我知道它不能振动,但它至少应该发出蜂鸣声。
它编译得很好,添加了音频工具箱并只是调用该行,但没有任何反应。声音当然是开着的。
知道它可能是什么吗?
I cannot get AudioServicesPlayAlertSound(kSystemSoundID_Vibrate)
to make the ipod beep - I know it cannot vibrate, but its suppsoed to beep atleast.
It compiles fine, added the audiotoolbox and just calling that line, and nothing happens. The sound is on of course.
Any idea on what it could be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
希望这能为您提供更多信息?
我也遇到了同样的问题,但是几天后就正常了,没有任何改变?
附言。我知道很愚蠢,但在测试时请确保音量已打开......
Hopefully this may give you some more info?
I had the same problem, but it worked fine a few days later without any changes??
PS. Stupid i Know but make sure the volume is on and up when your testing...