c# - Lower volume when converting between .wav bitrates -


i'm creating program me out bulk-wav conversion (since often have convert files specific sample rates). , have been before when converting lower volume 85% of normal (to avoid clipping). naudio can't seem understand how should this.

this method i'm using convert wav files.

using (var reader = new wavefilereader(sourcefiles[i])) {     using (var conversionstream = new waveformatconversionstream(newformat, reader))     {         wavefilewriter.createwavefile(newpath, conversionstream);     } } 

how able set volume?

after more exploring , looking around found naudio.wave.volumewaveprovider16 class, want!


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -