Audio recording and playback using NAudio

Posted by Egon on Stack Overflow See other posts from Stack Overflow or by Egon
Published on 2010-03-29T20:34:57Z Indexed on 2010/03/29 20:43 UTC
Read the original article Hit count: 751

Filed under:
|
|

When I try recording audio following this here, and using the related source code from here in the (voicerecorder.audio project), I face the problem that the recording stops within moments of starting and so does the playback. the recorded file is 46 bytes, and playback is there for less than a second, basically, the thread jumps to the next statement immediately. If I try to sleep the thread, it doesn't help. What can I do to keep it in the recording mode or playback mode until user interrupt ?

© Stack Overflow or respective owner

Related posts about naudio

Related posts about c#