[英]getting “Exception from HRESULT: 0xC00DABE0” in MediaCapture sample of c#/xaml metro style app
I have checked this MediaCapture sample. 我检查了这个MediaCapture样本。 I tried to record audio but when I press "StartDevice" button, I got "Exception from HRESULT: 0xC00DABE0".
我试着录制音频但是当我按下“StartDevice”按钮时,我得到了“HRESULT异常:0xC00DABE0”。 My audio device is working perfectly, I have checked with Windows 8's built in sound recording app.
我的音频设备运行正常,我已经使用Windows 8的内置录音应用程序进行了检查。 Can anyone please help me to sort out this issue ?
有人可以帮我解决这个问题吗?
I have tried the same app with HTML5/JS sample, it records the audio but C#/XAML app gives exception. 我用HTML5 / JS示例尝试了相同的应用程序,它记录了音频,但C#/ XAML应用程序给出了异常。
Finally found the solution 终于找到了解决方案
change this line into sample 将此行更改为示例
await m_mediaCaptureMgr.InitializeAsync();
to this 对此
await m_mediaCaptureMgr.InitializeAsync(settings);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.