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

Can NAudio support this ?

Apr 15, 2011 at 3:19 PM


I'm new to NAudio and wanted to know if the following can supported before I start digging in

I'm using .Net 4.0 and my app needs the following:

- support mono and streo wave files at 24bit, 48KHz (I can compromise and use 16bit if I must)

- file streaming (i.e. working with buffers and not a complete file as I'm doing some audio processing in RT)

- support both x86 and x64 platforms

* Can NAudio support that ?  if positive, as latency is not an issue with my app, can I use Waveout device ?

My goal is to keep it as simple as possible especialy when installing my app on other machimes.

* Beside .Net 4 client, what are the other prereq, if any, needed to be installed on target machines ?

Tnx in advance,




Apr 15, 2011 at 4:09 PM

I've just checked in an example of 24 bit WAV playback. Mono and stereo is fine.

Playback at 48kHz is fine, although depending on the output model used that may mean sample rate conversion is applied

Yes, file streaming is completely possible. Have a look at the SkypeFX project for an example. (also PracticeSharp)

NAudio can run on x86 and x64. At the moment it is recommended you build your app to target x86 so it runs as 32 bit on 64 bit windows to ensure there are no interop issues (also ACM codecs seem only to be available for 32 bit)


Apr 15, 2011 at 4:46 PM

Tnx Mark.

Does v1.3 support 24bits or I need a newer ver ?

I'm asking since I just tried a quick exampe based on Toturial 1. 16 bit files works well but when moving to 24 bits I'm geting this error: "AcmNotPossible calling acmStreamOpen"

do I have to install a specific ACM codec ? 



Apr 15, 2011 at 4:58 PM

you need to use the latest code from source control. hopefully a 1.4 to be released soon

Apr 15, 2011 at 5:17 PM

 OK, Tnx.

with v1.3 16bit @ 48KHz seems to work fine, so I'll wait for v1.4 to move to 24bit.



Apr 16, 2011 at 7:18 PM

This update is really nice.  I am using it on my 24bit FLAC files that get converted to WAV before playback and it works great.  Thank you!