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

New Post: wave file amplify

$
0
0
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);
        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.

Viewing all articles
Browse latest Browse all 5831

Trending Articles