AudioSource

Concrete implementation of IAudioSource.

Constructors

this
this(const(char)[] path)

Create a source from file.

this
this(const(ubyte)[] inputData)

Create a source from memory data.

Members

Functions

mixIntoBuffer
void mixIntoBuffer(float*[] inoutChannels, int frames, int frameOffset, uint loopCount, float* volumeRamp, float[2] volume)
Undocumented in source. Be warned that the author may not have intended to support it.
prepareToPlay
void prepareToPlay(float sampleRate)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From IAudioSource

prepareToPlay
void prepareToPlay(float sampleRate)

Called before an IAudioSource is played on a mixer channel.

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.

Meta