Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: Resample problem

$
0
0
Now I'm able to do the mixing like this:
WaveFormat waveFormat = new WaveFormat(44100, 2);
WaveFileReader reader = new WaveFileReader(fileName);
WaveFormatConversionStream convertStream = new WaveFormatConversionStream(waveFormat, reader);
cm16BitToSampleProvider sampleProvider = new Pcm16BitToSampleProvider(convertStream);
mixer.AddMixerInput(sampleProvider);

But how can I play/save the mixer stream. The problem is that it is 16bit PCM at this stage and I need to convert it to IWaveProvider

 


Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>