Creates a new AudioOutput instance.
Sample rate and master volume settings.
Adds an encoded audio buffer to the playback queue. Playback starts immediately if the queue was previously empty.
Encoded audio bytes (e.g. WAV or MP3 ArrayBuffer).
MIME type of the buffer, e.g. "audio/wav".
Resolves when the buffer has finished playing.
Registers a callback invoked when the playback queue drains.
Called once the last queued buffer finishes.
Registers a callback to receive PCM reference frames for echo cancellation. Fired synchronously before each buffer reaches the speaker.
Called with the reference PCM just before playback.
Suspends playback after the current buffer finishes. Call resume to continue the queue.
Resumes a paused playback queue.
Immediately stops playback and clears the entire queue.
FIFO audio playback queue with lifecycle events and AEC reference signalling.