Class Audio.Output

implements Audio.Sink

An audio system output.

Constructors

Output(string name, string connection)
Output(string name, bool autoconnect)

Properties

input Audio.Connector inputs as an array

Methods

connect(regex connection) connect any system port whose name matches the given regular expression
connect(string connection) connect a system port with the given name
play(Audio.Buffer buffer) immediately play an audio buffer
play(Audio.Clip clip) immediately play an audio clip
schedule(Audio.Buffer buffer, float measure, Time.Clock clock) schedule an audio buffer to play
schedule(Audio.Clip clip, float measure, Time.Clock clock) schedule an audio clip to play

Constructor Documentation


Output(string name, string connection)

Parameters


Output(string name, bool autoconnect)

Parameters

Property Documentation


array input

Audio.Connector inputs as an array. Adding or removing elements to this array has no effect on the underlying audio component.

Method Documentation


void connect(regex connection)

Connect any system port whose name matches the given regular expression

Parameters


void connect(string connection)

Connect a system port with the given name

Parameters


void play(Audio.Buffer buffer)

Immediately play an audio buffer.

Parameters


void play(Audio.Clip clip)

Immediately play an audio clip.

Parameters


void schedule(Audio.Buffer buffer, float measure, Time.Clock clock)

Schedule an audio buffer to play.

Parameters


void schedule(Audio.Clip clip, float measure, Time.Clock clock)

Schedule an audio clip to play.

Parameters



Creative Commons Logo This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.