获取音频输入设备采样率时出错:'!obj' [英] Error getting audio input device sample rate: '!obj'

查看:75
本文介绍了获取音频输入设备采样率时出错:'!obj'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我正在开发一个应用程序,可以从互联网上播放广播电台.我观看了这个教程并逐步实施.它运行良好一段时间,但现在我收到以下错误,应用程序不会流式传输任何内容

Currently I am developing an app that will stream a radio station from the internet. I watched this tutorial and implemented it step by step. It worked fine for a while but now I am getting the following error and the app wont stream anything

2013-07-20 10:22:40.653 ShqipCom[464:c07] [MPAVController] Autoplay: Enabling autoplay
2013-07-20 10:22:40.668 ShqipCom[464:c07] [MPCloudAssetDownloadController] Prioritization requested for media item ID: 0
2013-07-20 10:22:41.129 ShqipCom[464:c07] [MPAVController] Autoplay: Enabling autoplay
2013-07-20 10:22:41.572 ShqipCom[464:7103]  <com.apple.coremedia.networkbuffering> Error '!obj' trying to fetch default input device's sample rate
2013-07-20 10:22:41.574 ShqipCom[464:7103]  <com.apple.coremedia.networkbuffering> Error getting audio input device sample rate: '!obj'
2013-07-20 10:22:41.576 ShqipCom[464:7103]  <com.apple.coremedia.networkbuffering> AQMEIOManager::FindIOUnit: error '!dev'
2013-07-20 10:22:41.577 ShqipCom[464:5403]  <0xb0365000> AQMEIOManager::FindIOUnit: error '!dev'

(lldb)

我触发播放器的 IBAction 看起来像这样

my IBAction that triggers the player looks like this

-(IBAction)Play:(id)sender
{
 NSString *stream = @"http://www.volksmusiknet.ch/stream.m3u";
 NSURL *url = [NSURL URLWithString:stream];
 NSURLRequest *urlRequest = [NSUrlRequest requestWithUrl:url];
 [WebView loadRequest:urlRequest];
}

也许值得一提的是,在另一个选项卡中,我尝试使用 MPMoviePlayerController 流式传输电视流,是不是播放器在某种程度上发生了冲突?

Maybe it is worth mentioning that in another tab i tried to stream TV streams with MPMoviePlayerController, could it be that the player is somehow conflicting?

非常感谢!

花岗岩

推荐答案

我在虚拟机上尝试了上述代码,结果发现 VM 的音频配置有问题.在 macbook 上尝试了该项目,效果很好.

I was trying the above code on a virtual machine and turned out that the VM had problems with the audio configuration. Tried the project on a macbook and it works fine.

这篇关于获取音频输入设备采样率时出错:'!obj'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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