SCI Kernel Documentation/Sound Functions
Author: Jeff Stephenson
- 1 Sound Functions
- 1.1 (DoSound InitSound sound)
- 1.2 (DoSound PlaySound sound)
- 1.3 (DoSound NextSound)
- 1.4 (DoSound KillSound handle)
- 1.5 (DoSound SoundOn [soundFlag])
- 1.6 (DoSound StopSound handle)
- 1.7 (DoSound PauseSound value)
- 1.8 (DoSound RestoreSound)
- 1.9 (DoSound ChangeVolume vol)
- 1.10 (DoSound ChangeSndState soundObj)
- 1.11 (DoSound FadeSound handle)
- 1.12 (DoSound NumVoices)
(DoSound InitSound sound)
Initialize the sound. Will set handle property of object to the internal sound node.
(DoSound PlaySound sound)
Plays the sound, if no other higher priority sounds are playing.
Not implemented yet.
(DoSound KillSound handle)
Kill the sound given in handle.
(DoSound SoundOn [soundFlag])
If soundFlag is present, it will either turn on sound output if soundFlag is TRUE or turn off sound output if soundFlag is FALSE. If soundFlag is not present, it will returns TRUE if sound output is on, FALSE otherwise.
(DoSound StopSound handle)
Stop the sound specified in handle from playing.
(DoSound PauseSound value)
If value is TRUE, pause all the active sounds and set state to SND_BLOCKED.. If value is FALSE, then unpause all blocked sounds.
Loads all sounds in sound list and starts playing the one that is active that has the highest priority.
(DoSound ChangeVolume vol)
Sets the volume to vol, where vol can be between 0 and 100.
(DoSound ChangeSndState soundObj)
Change the state of the internal sound node to correspond to the values in soundObj.
(DoSound FadeSound handle)
On systems with volume control, fade away the sound given in handle. Otherwise, a StopSound is implemented in the music driver.
Returns the number of voices in the sound hardware.