Advanced

Functions

int oslGetSoundChannel (OSL_SOUND *s)
 
int oslSoundLoopFunc (OSL_SOUND *s, int voice)
 

Variables

OSL_AUDIO_VOICE osl_audioVoices [OSL_NUM_AUDIO_CHANNELS]
 

Detailed Description

Lower level work with active audio channels.

Function Documentation

int oslGetSoundChannel ( OSL_SOUND s)

Returns the channel on which a specific sound is being played, or -1 if the sound is not being played currently.

int oslSoundLoopFunc ( OSL_SOUND s,
int  voice 
)

Standard callback function that loops a sound. Set as the sound end callback by oslSetSoundLoop.

Variable Documentation

Represents the currently active voices properties. Especially, you can find a 'sound' member, which holds a pointer to the currently playing sound in this voice.