Compute. Output. PlaySignal
Using the pan input slot in range [-1.0, 1.0] left/right stereo panning can be controlled, where -1.0 correspond to full left pan, 1.0 to full right pan, and 0.0 to centered output.
The fade in and fade out input allows the control the linear fade between two audio signals. The fading time is given in milliseconds.
If the queued flag is not set, the node continues playing the current signal until the node is triggered again with an updated input signal (or until the complete data is played). If the queued flag is set, a new audio signal is added to a queue and is played once the other preceding signals in the queue have finished playing.
The postpone input allows to delay the playback of the audio signal by a given number of milliseconds. If the queued flag is set, the delay is applied only to the first signal that enters the queue.
If the loop flag is set, the input audio signal is loop until the node is triggered again with an updated input signal. The queued flag can not be used in combination with the loop flag.
The mute input can be used to turn off the signal. If the fading time given by fade off is larger than zero, a linear fade out is performed.
The implementation uses the Web Audio API. If your browser does not support this API, this node can not be used and will return an error message.
The example Play Audio File demonstrates the basic usage of this node.