DemoGL::Reference::Functions::DEMOGL_SoundSystemSetVolume

DEMOGL_SoundSystemSetVolume

DEMOGL_SoundSystemSetVolume sets the overall volume of the total sound output of the sound system. This volume is a percentage of the wave out volume set in windows. DemoGL uses logaritmic scaling for volumes and pans as windows does.

int
DEMOGL_SoundSystemSetVolume(
	const int iVolume
);
	
Parameters.
iVolume
Specifies the new overall volume for the total sound output of the sound system. Values have to fall in the range [0, 100], with 0 is no volume and 100 is the maximum output currently possible, which is equal to the value of the volume slider of the wave output in windows.

Return values.
If the function succeeds, it returns SYS_OK.
If the function fails, it returns SYS_NOK.

Remarks.
DemoGL uses the logaritmic scaling of the underlying sound library. This means that pumping the volume up from 90 to 100 is different than from 80 to 90. See the iVolume value as a percentage of the volume slider for wave output in windows.

Example.

Requirements.
DemoGL v1.3 (build 0112 or higher)

See also.

Last changed on 18-jan-2001

©1999-2001 Solutions Design