Reputation: 13
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
Upvotes: 0
Views: 5343
Reputation: 49522
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.
Upvotes: 2