6.10 b8: SoundVolume: Wrap Volume as Float
Posted: Wed Mar 20, 2024 3:00 pm
Greetings.
In previous versions of PureBasic that used DirectSound, the available 0 to -10000 volume steps were wrapped to a LONG/INT of 100 to 0.
This created aliasing if you were using it unmodified for volume envelopes.
Since floating point performance for that should no longer be a consideration, and DirectSound is going to be replaced with miniaudio anyway, please consider wrapping the Volume parameter as a FLOAT, since that is what miniaudio is apparently using internally as well.
In previous versions of PureBasic that used DirectSound, the available 0 to -10000 volume steps were wrapped to a LONG/INT of 100 to 0.
This created aliasing if you were using it unmodified for volume envelopes.
Since floating point performance for that should no longer be a consideration, and DirectSound is going to be replaced with miniaudio anyway, please consider wrapping the Volume parameter as a FLOAT, since that is what miniaudio is apparently using internally as well.