#include <nitro/snd.h>
u16 SND_CalcChannelVolume( int dB );
dB |
The decibel value. Each unit is 0.1 dB and acceptable values are in the range of –72.3 dB to 0.0 dB. |
Returns the channel volume as a 16-bit value. The lower 8 bits store the volume value, while the upper 8 bits store the data shift value.
Calculates the value for the channel volume.
This gets a volume value that can be directly handled by the SND_SetChannelVolume function. A volume value in the range of 0 to 127 is inside the lower 8 bits of the returned value. The SNDChannelDataShift
type is inside the upper 8 bits of the returned value.
2004/09/02 Added a description of units to Arguments.
2004/07/20 Initial version.
CONFIDENTIAL