6.10 b8: SoundVolume: Wrap Volume as Float

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Jan125
User
User
Posts: 14
Joined: Fri Oct 16, 2015 5:21 pm

6.10 b8: SoundVolume: Wrap Volume as Float

Post by Jan125 »

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.
Quin
Addict
Addict
Posts: 1131
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: 6.10 b8: SoundVolume: Wrap Volume as Float

Post by Quin »

+1
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: 6.10 b8: SoundVolume: Wrap Volume as Float

Post by Fred »

Will do for next beta :)
Post Reply