Getting a value from AudioServer

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Kio

Is the best way to get current level of audio bus?

AudioServer.get_bus_peak_volume_left_db ( int bus_idx, int channel )

Is there a way to get the sum of left and right channel in a single function,
or must do the math between L and R ?

Also bit confused about what the “int channel” value actually refers to.

Thanks all,

Kio | 2018-10-10 00:12

About the channels: the function parameter may be referring to one of the audio channels in a multi-channel system. The sound system on a device (someone’s desktop computer, for instance) may have four or more channels. So you may have one sound on each of those four tracks.

Ertain | 2018-10-10 07:04

Thank you… for the “channel” info. That could be very handy, I would guess for surround sound, or stage/environmental soundscaping etc.

Kio | 2018-10-10 17:22