mark,
i used VolumeSampleProvider as you told me...but no change occure at output file. i changed the volume value in volule sample provider. but not effecting, my code is below...
var mySample = new AudioFileReader(@"C:\Users\zaheer\Desktop\tmp_ItnaBhiNaChahoMujhe.wav"); NAudio.Wave.SampleProviders.VolumeSampleProvider vol = new NAudio.Wave.SampleProviders.VolumeSampleProvider(mySample);
m very thank full to you.
i used VolumeSampleProvider as you told me...but no change occure at output file. i changed the volume value in volule sample provider. but not effecting, my code is below...
var mySample = new AudioFileReader(@"C:\Users\zaheer\Desktop\tmp_ItnaBhiNaChahoMujhe.wav"); NAudio.Wave.SampleProviders.VolumeSampleProvider vol = new NAudio.Wave.SampleProviders.VolumeSampleProvider(mySample);
vol.Volume = (float)3.0;
//WaveFileWriter.CreateWaveFile(@"C:\Users\zaheer\Desktop\out.wav", vol.mySample .);
please tell me how it will change the gain of audio file. m very thank full to you.