Server interface for low-level audio access.
AudioServer is a low-level server interface for audio access. It is in charge of creating sample data (playable audio) as well as its playback via a voice interface.
https://docs.godotengine.org/en/latest/tutorials/audio/audio_buses.html
Adds a bus at [code]at_position[/code].
Adds an [AudioEffect] effect to the bus [code]bus_idx[/code] at [code]at_position[/code].
Returns the names of all audio input devices detected on the system.
Attempts to start recording from the audio driver's capture device. On success, the return value is [constant OK].
Attempts to stop recording from the audio driver's capture device. On success, the return value is [constant OK].
Generates an [AudioBusLayout] using the available buses and effects.
Returns the amount of channels of the bus at index [code]bus_idx[/code].
Returns the [AudioEffect] at position [code]effect_idx[/code] in bus [code]bus_idx[/code].
Returns the number of effects on the bus at [code]bus_idx[/code].
Returns the index of the bus with the name [code]bus_name[/code].
Returns the name of the bus with the index [code]bus_idx[/code].
Returns the peak volume of the left speaker at bus index [code]bus_idx[/code] and channel index [code]channel[/code].
Returns the peak volume of the right speaker at bus index [code]bus_idx[/code] and channel index [code]channel[/code].
Returns the name of the bus that the bus at index [code]bus_idx[/code] sends to.
Returns the volume of the bus at index [code]bus_idx[/code] in dB.
Returns an [PoolIntArray] containing audio frames from the capture device.
Returns the write position of the capture device buffer.
Returns the size of the capture device buffer.
Returns the names of all audio output devices detected on the system.
Returns the sample rate at the output of the [AudioServer].
Returns the audio driver's output latency.
Returns the speaker configuration.
If [code]true[/code], the bus at index [code]bus_idx[/code] is bypassing effects.
If [code]true[/code], the effect at index [code]effect_idx[/code] on the bus at index [code]bus_idx[/code] is enabled.
If [code]true[/code], the bus at index [code]bus_idx[/code] is muted.
If [code]true[/code], the bus at index [code]bus_idx[/code] is in solo mode.
Locks the audio driver's main loop. Remember to unlock it afterwards.
Moves the bus from index [code]index[/code] to index [code]to_index[/code].
Removes the bus at index [code]index[/code].
Removes the effect at index [code]effect_idx[/code] from the bus at index [code]bus_idx[/code].
If [code]true[/code], the bus at index [code]bus_idx[/code] is bypassing effects.
If [code]true[/code], the effect at index [code]effect_idx[/code] on the bus at index [code]bus_idx[/code] is enabled.
Overwrites the currently used [AudioBusLayout].
If [code]true[/code], the bus at index [code]bus_idx[/code] is muted.
Sets the name of the bus at index [code]bus_idx[/code] to [code]name[/code].
Connects the output of the bus at [code]bus_idx[/code] to the bus named [code]send[/code].
If [code]true[/code], the bus at index [code]bus_idx[/code] is in solo mode.
Sets the volume of the bus at index [code]bus_idx[/code] to [code]volume_db[/code].
Swaps the position of two effects in bus [code]bus_idx[/code].
Unlocks the audio driver's main loop. (After locking it, you should always unlock it.)
- Number of available audio buses.
- Name of the current device for audio input (see [method capture_get_device_list]).
- Name of the current device for audio output (see [method get_device_list]).
- Scales the rate at which audio is played (i.e. setting it to [code]0.5[/code] will make the audio be played twice as fast).
Emitted when the [AudioBusLayout] changes.
Two or fewer speakers were detected.
A 3.1 channel surround setup was detected.
A 5.1 channel surround setup was detected.
A 7.1 channel surround setup was detected.