Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.simular.ai/llms.txt

Use this file to discover all available pages before exploring further.

Class: AudioOutput

Defined in: index.d.ts:272 Handle to an open audio output device. Must be kept alive for playback to continue — when dropped all associated Players stop producing sound.

Constructors

Constructor

new AudioOutput(): AudioOutput

Returns

AudioOutput

Methods

createPlayer()

createPlayer(): Player
Defined in: index.d.ts:281 Creates a new Player attached to this output.

Returns

Player

openDefault()

static openDefault(): AudioOutput
Defined in: index.d.ts:279 Opens the default audio output device with its default configuration. If that fails, tries alternative configurations and non-default output devices. Returns the first configuration that succeeds. If all attempts fail, returns the initial error.

Returns

AudioOutput