Sound functions create sound and music for the system's sound generator. The following list briefly describes each sound function:
Function | Description | |
CloseSound | Closes the play device after flushing the voice queues and freeing the buffers. | |
CountVoiceNotes | Returns the number of notes in the specified queue. | |
GetThresholdEvent | Returns a long pointer to a threshold flag. | |
Function | Description | |
GetThresholdStatus | Returns the threshold-event status for each voice. | |
OpenSound | Opens the play device for exclusive use. | |
SetSoundNoise | Sets the source and duration of a noise from the play device. | |
SetVoiceAccent | Places an accent in the voice queue. | |
SetVoiceEnvelope | Places the voice envelope in the voice queue. | |
SetVoiceNote | Places a note in the specified voice queue. | |
SetVoiceQueueSize | Allocates a specified number of bytes for the voice queue. | |
SetVoiceSound | Places the specified sound frequency and durations in a voice queue. | |
SetVoiceThreshold | Sets the threshold level for a given voice. | |
StartSound | Starts playing each voice queue. | |
StopSound | Stops playing all voice queues and flushes their contents. | |
SyncAllVoices | Places a sync mark in each voice queue. | |
WaitSoundState | Waits until the play driver enters the specified state. |