Skip to main content

AudioServer

Inherits: Object

Description

Server interface for low-level audio access. AudioServer is in charge of creating sample data (playable audio) as well as its playback via a voice interface.

Methods

add_bus

Adds a bus at the specified position.

add_bus_effect

Adds an AudioEffect effect to the bus at the specified position.
int
The bus index
AudioEffect
The audio effect to add

get_bus_name

Returns the name of the bus with the given index.

get_bus_volume_db

Returns the volume of the bus at index in dB.

set_bus_volume_db

Sets the volume of the bus at index in dB.

get_mix_rate

Returns the sample rate at the output of the AudioServer.

get_output_latency

Returns the audio driver’s effective output latency.

Example Usage