iphone:(音频)发布消息以杀死 mediaserverd

发布于 2024-09-24 01:28:03 字数 842 浏览 2 评论 0原文

我正在使用以下方法播放几种声音: AudioServices< /a>

AudioServicesPlaySystemSound(aSystemSoundID);

当我在连接到机器的 iPhone 3G 上测试该项目时,我收到此消息:

> 2010-09-16 17:29:29.672
> myProject[6528:6def] [17:29:29.672
> <0x85d400>] PlaySound posting message
> to kill mediaserverd (5958) [Switching
> to thread 13059]

和/或:

> 2010-09-16 17:30:28.316
> myProject[6528:6def] [17:30:28.316
> <0x85d400>] AudioQueueNew posting
> message to kill mediaserverd (0)
> Error: AudioQueueNewInput failed
> (0x10004003)

知道为什么吗?

谢谢。

顺便说一句,在模拟器上一切正常。

I'm playing several sounds using: AudioServices

AudioServicesPlaySystemSound(aSystemSoundID);

When I test the project on an iPhone 3G attached to the machine I get this message:

> 2010-09-16 17:29:29.672
> myProject[6528:6def] [17:29:29.672
> <0x85d400>] PlaySound posting message
> to kill mediaserverd (5958) [Switching
> to thread 13059]

and / or:

> 2010-09-16 17:30:28.316
> myProject[6528:6def] [17:30:28.316
> <0x85d400>] AudioQueueNew posting
> message to kill mediaserverd (0)
> Error: AudioQueueNewInput failed
> (0x10004003)

Any idea why?

Thanks.

BTW, on the simulator everything works fine.

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

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

发布评论

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

评论(2

悲喜皆因你 2024-10-01 01:28:03

我注意到这篇文章,听起来有点相似。尝试这个是一个选择吗?

AudioQueueStart 发布消息以终止 mediaserverd

I noticed this post, which sounds sort of similar. Is trying this an option?

AudioQueueStart posting message to kill mediaserverd

回心转意 2024-10-01 01:28:03

当我尝试设置音频类别(我正在使用音频单元)时,我收到了相同的消息。重新启动 iPad 后我就解决了这个问题。

I was getting the same message when trying to set the audio category (I'm using Audio Units). A reboot of the iPad fixed it for me.

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