简体   繁体   English

Windows Phone 8中的麦克风使用C#扩展了音频捕获

[英]Microphone in Windows Phone 8 extending audio capture using c#

I wanted to develop a audio recording app for Windows Phone in c# and I found a link on the internet. 我想用c#开发适用于Windows Phone的录音应用程序,但我在互联网上找到了一个链接。

http://developer.nokia.com/community/wiki/Audio_recording_and_playback_options_in_Windows_Phone http://developer.nokia.com/community/wiki/Audio_recording_and_playback_options_in_Windows_Phone

To my surprise, I found that I could not record for more than 20 minutes. 令我惊讶的是,我记录的时间不能超过20分钟。 That might be due the byte size restriction or any other memory allocation issues. 这可能是由于字节大小限制或任何其他内存分配问题引起的。 Could someone help me on that. 有人可以帮我吗。

Actually that is because the Memory cap for Windows Phone apps. 实际上,这是因为Windows Phone应用程序的内存上限。 Read the limitations here . 此处阅读限制。

As a solutions you can detect the memory cap for the device and then divide a longer recording in to smaller parts. 作为解决方案,您可以检测设备的内存盖,然后将较长的记录分成较小的部分。 But user doesn't need to do this manually, you can programmatically do this. 但是用户不需要手动执行此操作,您可以通过编程方式执行此操作。 In your case you you tested this on a 512MB device/emulator so 20 mins is the limit. 在您的情况下,您在512MB设备/仿真器上进行了测试,因此限制为20分钟。

So divide the recording in to 15 min sections. 因此,将录音分为15分钟。 You can use Coding4Fun Toolkit's MemoryCounter to monitor how much memory you use so you can decide where to break the recordings for each of the Memory capacities 您可以使用Coding4Fun工具包的MemoryCounter监视使用的内存量,从而可以确定在哪里中断每种内存容量的记录

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

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