Description

Provider of the Audio Output Audio Track asset.

Example

// @input Asset.AudioTrackAsset audioOutput
audioOutput = script.audioOutput.control;
audioOutput.sampleRate = script.sampleRate;
interface AudioOutputProvider {
    maxFrameSize: number;
    sampleRate: number;
    enqueueAudioFrame(audioFrame, inShape): void;
    getLoadStatus(): LoadStatus;
    getPreferredFrameSize(): number;
    getTypeName(): string;
    isOfType(type): boolean;
    isSame(other): boolean;
}

Hierarchy (view full)

Properties

maxFrameSize: number

Description

The maximum frame size of the audio track asset.

sampleRate: number

Description

Sample rate (samples per second) of the audio track asset.

Methods

  • Parameters

    • audioFrame: Float32Array
    • inShape: vec3

    Returns void

    Description

    Enqueue audio data into an audio playback system.

    shape.x - buffer size, must be less or equal to audioFrame length.

  • Returns number

    Description

    Preferred size for audio output at the current frame update.

  • Parameters

    • type: string

    Returns boolean

    Description

    Returns true if the object matches or derives from the passed in type.

  • Parameters

    Returns boolean

    Description

    Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

Generated using TypeDoc