Static methods

@:has_untypedstaticinlinecreate():AudioSourceInstance

Variables

mPlayIndex:UInt32

Play index; used to identify instances from handles

mLoopCount:UInt32

Loop count

mFlags:UInt32

Flags; see AudioSourceInstance::FLAGS

mPan:Float32

Pan value, for getPan()

mChannelVolume:Pointer<Float32>

Volume for each channel (panning)

mSetVolume:Float32

Set volume

mOverallVolume:Float32

Overall volume overall = set * 3d

mBaseSamplerate:Float32

Base samplerate; samplerate = base samplerate * relative play speed

mSamplerate:Float32

Samplerate; samplerate = base samplerate * relative play speed

mChannels:UInt32

Number of channels this audio source produces

mSetRelativePlaySpeed:Float32

Relative play speed; samplerate = base samplerate * relative play speed

mOverallRelativePlaySpeed:Float32

Overall relative plays peed; overall = set * 3d

mStreamTime:Time

How long this stream has played, in seconds.

mStreamPosition:Time

Position of this stream, in seconds.

mPanFader:Fader

Fader for the audio panning

mVolumeFader:Fader

Fader for the audio volume

mRelativePlaySpeedFader:Fader

Fader for the relative play speed

mPauseScheduler:Fader

Fader used to schedule pausing of the stream

mStopScheduler:Fader

Fader used to schedule stopping of the stream

mActiveFader:Int32

Affected by some fader

mCurrentChannelVolume:Pointer<Float32>

Current channel volumes, used to ramp the volume changes to avoid clicks

mAudioSourceID:UInt32

ID of the sound source that generated this instance

mBusHandle:UInt32

Handle of the bus this audio instance is playing on. 0 for root.

mFilter:Pointer<FilterInstance>

Filter pointer

mResampleData:Pointer<AlignedFloatBuffer>

Buffers for the resampler

mSrcOffset:UInt32

Sub-sample playhead; 16.16 fixed point

mLeftoverSamples:UInt32

Samples left over from earlier pass

mDelaySamples:UInt32

Number of samples to delay streaming

mLoopPoint:Time

When looping, start playing from this time

Methods

@:has_untypedinlinedestroy():Void

inlineinit(aSource:AudioSource, aPlayIndex:Int32):Void

Initialize instance. Mostly internal use.

getAudio(aBuffer:Pointer<Float32>, aSamplesToRead:UInt32, aBufferSize:UInt32):UInt32

Get N samples from the stream to the buffer. Report samples written.

hasEnded():Bool

Has the stream ended?

seek(aSeconds:Time, mScratch:Pointer<Float32>, mScratchSize:UInt32):Result

Seek to certain place in the stream. Base implementation is generic "tape" seek (and slow).

rewind():Result

Rewind stream. Base implementation returns NOT_IMPLEMENTED, meaning it can't rewind.

getInfo(aInfoKey:UInt32):Float32

Get information. Returns 0 by default.