0 votes

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,

asked Oct 10, 2018 in Engine by Kio (19 points)
edited Oct 10, 2018 by Kio

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.

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

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.