GetDefaultOutputVolume
You can use the GetDefaultOutputVolume function to determine the default volume of a sound output device.
FUNCTION GetDefaultOutputVolume (VAR level: LongInt): OSErr;
level
- On exit, the default volume level of a sound output device.
DESCRIPTION
The GetDefaultOutputVolume function returns, in the level parameter, the default volume of a sound output device. The values returned in the high and low words of the level parameter range from 0 (silence) to $0100 (full volume).
SPECIAL CONSIDERATIONS
The GetDefaultOutputVolume function is available only in versions 3.0 and later of the Sound Manager. You can call this function at interrupt time.
ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for the GetDefaultOutputVolume function are
| Trap macro | Selector |
| _SoundDispatch | $022C0024 |
RESULT CODES