IAudioSource

Represent a music or a sample.

Members

Functions

mixIntoBuffer
void mixIntoBuffer(float*[] inoutChannels, int frames, int frameOffset, uint loopCount, float* volumeRamp, float[2] volume)

Add output of the source to this buffer, with volume as gain.

prepareToPlay
void prepareToPlay(float sampleRate)

Called before an IAudioSource is played on a mixer channel.

Meta