PlayOptions

Options when playing a source.

Members

Variables

channel
int channel;

The channel where to play the source. anyMixerChannel for the first free unreserved channel.

crossFadeInSecs
float crossFadeInSecs;

The time it takes to start the sound if the channel is already busy. If the channel isn't busy, faceInSecs is used. Default: 14ms transition.

crossFadeOutSecs
float crossFadeOutSecs;

The time it takes to halt the existing sound if the channel is already busy. If the channel isn't busy, there is nothing to halt. Default: 40ms transition out.

delayBeforePlay
float delayBeforePlay;

The delay in seconds before which to play. The time reference is the time given by playbackTimeInSeconds(). The source starts playing when playbackTimeInSeconds has increased by delayBeforePlay. Note that it still occupies the channel.

fadeInSecs
float fadeInSecs;

Fade in time when the channel is free. This can be used to "dull" percussive samples and give them an attack time. Default: no fade in for maximum punch.

loopCount
uint loopCount;

Number of times the source is looped.

pan
float pan;

The angle pan to play the source with. -1 = full left 1 = full right

volume
float volume;

The volume to play the source with.

Meta