声音不是在iPhone模拟器的工作? [英] Sound not working in iPhone Simulator?

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

问题描述

不知怎的,我的iPhone模拟器无法播放声音。首先一个应用程序我正在使用 AudioServicesPlaySystemSound()停止工作..我花了一段时间的调试,但这个声音是在iPhone上仍在工作,当我在运行应用程序设备。我得到与其他iPhone应用程序相同的结果,如样本紧急迫降的应用程序。

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.

我找不到一个声音在模拟器或X code preferences任何地方设置。我试图通过重置内容和设置菜单项无济于事重置模拟器。

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上,进入系统preferences>声音>声音效果,然后取消并重新检查播放用户界面声音效果。

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

您需要重新启动您的系统声音,看到页面的结尾
<一href=\"http://discussions.apple.com/thread.jspa?messageID=8883401\">http://discussions.apple.com/thread.jspa?messageID=8883401

You need to re-activate your system sounds, see the end of that page http://discussions.apple.com/thread.jspa?messageID=8883401

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

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