简体   繁体   English

在Win-RT上暂停和恢复录音

[英]Pausing and Resuming audio recording on Win-RT

Can anyone help me to code in WinRT for PAUSING and RESUMING recording audio files. 谁能帮助我在WinRT中编码以暂停和恢复录制音频文件。

Classes used are as follows: 使用的类如下:

IRamdomAccessStream for storing captured voice to random stream. IRamdomAccessStream用于将捕获的语音存储到随机流。

Windows.Media.Capture.MediaCapture for capturing audio voice. Windows.Media.Capture.MediaCapture用于捕获音频。

Windows.Storage.StorageFile for storing file. Windows.Storage.StorageFile用于存储文件。

Please help me with the code that how to pause the stream and again on resume the captured voice append to the existing stream. 请帮助我提供如何暂停流以及再次将捕获的语音恢复到现有流的代码。

waiting 4 the reply.. 等待4的答复..

Thank you. 谢谢。

Not sure why this had been down voted. 不知道为什么这被否决了。 Have a look at this sample , it should get you started. 看一下这个示例 ,它应该可以帮助您入门。

The sample linked above provides indeed a good start about how to work with audio/video capture within a WinRT app. 上面链接的示例确实提供了有关如何在WinRT应用程序中进行音频/视频捕获的良好起点。 However, there's no scenario in the samples replying the original question: It seems indeed there are no methods that support pausing in MediaCapture. 但是,样本中没有方案可以回答原始问题:MediaCapture中似乎确实没有支持暂停的方法。 The only Store App available that supports pausing while recording that I can see it's Windows Sound Recorder from Microsoft . 我可以看到它是唯一一个支持暂停同时录音的Store App,它是MicrosoftWindows Sound Recorder I assume that App is written in C++ and uses a custom sink instead to record audio which also supports appending data to an existing stream. 我假设App是用C ++编写的,而是使用自定义接收器来录制音频,该音频还支持将数据附加到现有流中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM