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

FFT in wave streaming

Jul 6, 2011 at 1:50 PM

Hello again Mark.

I can play now a streaming wav successfully

my problem is that I cant display the fft.

In the Read method of WaveChannel32  thare is a event that raise with right & left values that pass to the fft calc

How can I do that in BufferWaveProvider? How can I know when a sample arrive?

Thanks in advance



Jul 8, 2011 at 10:29 AM

NAudio is all about creating audio pipelines. The output of BufferedWaveProvider could feed into another class that raises events for each sample. BufferedWaveProvider can't be plugged directly into WaveChannel32 since it expects a WaveStream instead of an IWaveProvider as an input, but you could make an adaptor very easily (it's just that BufferedWaveProvider doesn't support repositioning for obvious reasons).

Jul 13, 2011 at 9:22 PM

save the data from network in the bufferedwaveprovider but create the waveout with waveout.init(wavechannel32) . So you have to modify the wavechannl32 class and in the readmethod you have to read from your bufferedwaveprovider

Jul 15, 2011 at 6:52 AM

thanks mark & thefilo. All work now.