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,

in Engine by (20 points)
edited by

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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.

Categories