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]. 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 number of available buses. 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 the sample rate at the output of the audioserver. 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 drivers mainloop. 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. Adds and removes buses to make the number of buses match [code]amount[/code]. 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.) Emitted when the [AudioBusLayout] changes. Two or fewer speakers are detected. A 5.1 channel surround setup detected. A 7.1 channel surround setup detected.