Audio Channel Volume
by Daniel Stirk · in Torque Game Builder · 01/23/2006 (5:54 am) · 1 replies
I'm trying to work with channel volume, but I'm having trouble pulling a floating point value from the volume request. I use:
in order to fade out audio. However, when getting the current channel volume, I only get "1" or "0".
I use the command:
If the volume is 1.0, it returns "1". However, if it's less than 1 (ex. 0.95, 0.3) then it returns "0". Anyone else have this problem or know the cause? THe source didn't seem to have any problems.
alxSetChannelVolume(0, %value);
in order to fade out audio. However, when getting the current channel volume, I only get "1" or "0".
I use the command:
alxGetChannelVolume(0);
If the volume is 1.0, it returns "1". However, if it's less than 1 (ex. 0.95, 0.3) then it returns "0". Anyone else have this problem or know the cause? THe source didn't seem to have any problems.
About the author
Associate Anthony Rosenbaum