This project has moved. For the latest updates, please go here.

Information on RawWaveSourceStream?

May 22, 2015 at 10:41 AM
Edited May 22, 2015 at 10:44 AM

I need to clone a WaveStream object. I'v read RawWaveSourceStream is the way to go, but i can't find the method inside the NAudio namespace nor any documentation about it online.

Using NAudio v.1.7. in combination with C# (Visual Studio 2013).


May 22, 2015 at 1:42 PM

a Wavestream is a class object, that NAudio has inherited from stream, see:

If you want to create a custom Wavestream then inherit from Wavestream and fill out the auto-generated methods that visual studio generates for you.

A RawsourceWavestream (I think you wrote it false and couldn´t therefore find it) is just a StreamReader for files that only contain wave data. So you must tell the RawsourceWavestream which waveformat the data has, and it will read it for you.