IsPack(), SoundVolume scaling, sound channels

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
nsstudios
Enthusiast
Enthusiast
Posts: 274
Joined: Wed Aug 28, 2019 1:01 pm
Location: Serbia
Contact:

IsPack(), SoundVolume scaling, sound channels

Post by nsstudios »

Hi,

Here are a few things that I'd love to see fixed or added in PB:

1. It would be cool if there was an IsPack() function.

2. SoundVolume() function seems to have an uneven scaling on Windows (I think on other platforms, too, but I'm not sure).
I.e., fading out a sound is very abrupt toward the end (volume 1=-4000).
This forces me to set volume directly with IDirectSoundBuffer, but I have no idea how to do it for other OS's, so I would really appreciate if SoundVolume could be updated to have better scailing.

3. It would be cool if there was a way to get the number of channels of a specific sound.
What I need it for is checking whether the sound has any channels, and freeing it if it doesn't.

3.1. Doo channels need freeing?
If they do, could we get the optional channel parameter in FreeSound to do it?

Thanks.