简体   繁体   中英

C# NAudio Volume

As title, I just searched very thoroughly on the web, still not having an answer. I'm working with WaveChannel32 like this : WaveChannel32 volumeStream and setting the volume like : volumeStream.Volume , the default value is 1 but if it increase, the volume increase only once, so I suspect is it more like a toggle than a volume control. If I am right, so how to control the volume?
Refer to http://naudio.codeplex.com/wikipage?title=MP3

The Volume property is a multiplier. So 1 means keep the volume the same, 0 means silence. 0.5 would make it quieter, 2.0 would double the amplitude of each sample etc. Note that if you increase this value above 1 there is the chance that you will clip your audio later when you play it or convert it back to a WAV file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM