声音在 iPhone 模拟器中不起作用? [英] Sound not working in iPhone Simulator?

查看:58
本文介绍了声音在 iPhone 模拟器中不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不知何故,我的 iPhone 模拟器无法播放声音.首先,我正在使用 AudioServicesPlaySystemSound() 开发的应用程序停止工作.我花了一段时间进行调试,但当我在设备上运行该应用程序时,声音仍在 iPhone 上运行.我在使用其他 iPhone 应用程序(例如示例 Crash Landing 应用程序)时得到了相同的结果.

Somehow my iPhone Simulator is unable to play sounds. First an app I'm working on using AudioServicesPlaySystemSound() stopped working.. I spent a while debugging this but sound is still working on the iPhone when I run the app on the device. I get the same results with other iPhone apps such as the sample Crash Landing app.

我在模拟器或 Xcode 首选项中的任何地方都找不到声音设置.我尝试通过重置内容和设置"菜单项重置模拟器无济于事.

I can't find a sound setting anywhere in the simulator or Xcode preferences. I've tried resetting the simulator through "Reset Content and Settings" menu item to no avail.

推荐答案

在 Mac 上,转到系统偏好设置">声音">声音效果",然后取消选中并重新选中播放用户界面声音效果".

On your Mac, go to System Preferences > Sound > Sound Effects and then uncheck and recheck "Play user interface sound effects".

您需要重新激活系统声音,请参阅本 页面.

You need to re-activate your system sounds, see the end of this page.

这篇关于声音在 iPhone 模拟器中不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆