You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Add "Mute Audio" button to Game view in editor
Update servers/audio_server.cpp Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Apply suggestions from code review Co-authored-by: Adam Scott <ascott.ca@gmail.com> Fix a few lines for new member names Add command-line argument `--debug-mute-audio`, and pass it to game if started with mute enabled Apply suggestions from code review Co-authored-by: arkology <43543909+arkology@users.noreply.github.com> Co-authored-by: Rémi Verschelde <rverschelde@gmail.com> Fix icon for svgo
This commit is contained in:
@@ -240,6 +240,7 @@ static bool debug_paths = false;
|
||||
static bool debug_navigation = false;
|
||||
static bool debug_avoidance = false;
|
||||
static bool debug_canvas_item_redraw = false;
|
||||
static bool debug_mute_audio = false;
|
||||
#endif
|
||||
static int max_fps = -1;
|
||||
static int frame_delay = 0;
|
||||
@@ -1672,6 +1673,8 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
||||
debug_canvas_item_redraw = true;
|
||||
} else if (arg == "--debug-stringnames") {
|
||||
StringName::set_debug_stringnames(true);
|
||||
} else if (arg == "--debug-mute-audio") {
|
||||
debug_mute_audio = true;
|
||||
#endif
|
||||
#if defined(TOOLS_ENABLED) && (defined(WINDOWS_ENABLED) || defined(LINUXBSD_ENABLED))
|
||||
} else if (arg == "--test-rd-support") {
|
||||
@@ -4010,6 +4013,10 @@ int Main::start() {
|
||||
if (debug_canvas_item_redraw) {
|
||||
RenderingServer::get_singleton()->canvas_item_set_debug_redraw(true);
|
||||
}
|
||||
|
||||
if (debug_mute_audio) {
|
||||
AudioServer::get_singleton()->set_debug_mute(true);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (single_threaded_scene) {
|
||||
|
||||
Reference in New Issue
Block a user