This project has moved and is read-only. For the latest updates, please go here.

NAudioTutorial 5 not working

Jan 18, 2010 at 7:29 AM

I am using VS2008 on an XP system.  I run the NAudioTutorial5 example and when I attempt to playback a recording from "Record only audio mixed and played by NAudio", I get an exception, "Only PCM Supported".  Why is this happening?

 

Additionally, to make my need clear, I am looking to build in recording functionaliity into a Voip Softphone I am developing.  I am not looking to capture the remote incoming audio from an Input device like a Microphone, but rather get the audio from the Output device.  Am I on the right track using NAudio and more specifically, this example?  Thank you for your time.

Jan 22, 2010 at 2:44 AM

Hi Yired,

Can you please post up the code that you are using for this?

Are you using a modified version of the NAudio library for this?

The NAudio library has changed a bit since that tutorial was written; you can either use the version of the library where the modifications were made or reapply those modifications to the current version.

I'm not sure if this type of functionality has been included in the core latest version on SVN; I haven't had a chance to check out the latest updates from SVN recently but if your interested in this type of functionality I would suggest you start there.

 

Having said all this, the normal reason you would get an error like this is if you are loading a format which NAudio doesn't handle or you have incorrectly told NAudio the format of a file type that is supported. So I would suggest you check if you are preparing the RIFF header correctly for the data you have saved.

Cheers.