Miles Sound System SDK 7.2a

AIL_redbook_set_volume_level

The function AIL_redbook_set_volume_level controls the volume level of the Red Book CD-audio device.

S32 AIL_redbook_set_volume_level(
  HREDBOOK hand,
  F32 volume
);

In Parameters

hand
specifies which CD device to control.
volume
is the new volume level (0 to 1.0).

Returns

The new volume level.

Discussion

Under Windows, MSS uses the "aux" device for volume control.

Under Win32 and Win64, MSS uses the Windows mixer API.

Under MacOS, MSS uses the system volume control panel.

Under DOS, MSS adjusts the CD-ROM's hardware volume.

Under DOS and MacOS 9, this function must not be invoked from an interrupt-based callback function.

Example files that use this function: AudioCD.C


Group: CD Audio (Redbook) Services
Related Functions: AIL_redbook_volume_level
Related Basic Types: F32, HREDBOOK, S32

For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.