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

How to Set Volume in WaveOutEvent?

Jan 6, 2015 at 6:34 AM
Hi,


When i use the player as WaveOut, i can set the volume for that player. Instead of that, i changed the player as WaveOutEvent, so that when i set the volume and compiling it, shows the error like as "NotImplementedException was Caught" i.e) The method or operation is not implemented. Please help me to resolve this error. Thank you in advance.
Jan 8, 2015 at 10:15 PM
Use it like this:

waveOutDevice = new WaveOutEvent();

waveToSample = new WaveToSampleProvider(waveChannel);
volumeSampleProvider = new VolumeSampleProvider(waveToSample );
sampleToWave = new SampleToWaveProvider(volumeSampleProvider);

waveOutDevice.Init(sampleToWave);


Then use volumeSampleProvider.
Marked as answer by karthickbm on 1/8/2015 at 8:58 PM