From 84a2778e28383bbdd4b877968a1a1b67106325d3 Mon Sep 17 00:00:00 2001 From: RedMser Date: Wed, 2 Aug 2023 17:20:40 +0200 Subject: [PATCH] Simpler default values for AudioStreamRandomizer --- doc/classes/AudioStreamRandomizer.xml | 4 ++-- servers/audio/audio_stream.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/classes/AudioStreamRandomizer.xml b/doc/classes/AudioStreamRandomizer.xml index 384c3160008..12514fe03d7 100644 --- a/doc/classes/AudioStreamRandomizer.xml +++ b/doc/classes/AudioStreamRandomizer.xml @@ -68,10 +68,10 @@ Controls how this AudioStreamRandomizer picks which AudioStream to play next. - + The intensity of random pitch variation. A value of 1 means no variation. - + The intensity of random volume variation. A value of 0 means no variation. diff --git a/servers/audio/audio_stream.h b/servers/audio/audio_stream.h index 02a7651631d..983ca8892d2 100644 --- a/servers/audio/audio_stream.h +++ b/servers/audio/audio_stream.h @@ -223,8 +223,8 @@ private: HashSet playbacks; Vector audio_stream_pool; - float random_pitch_scale = 1.1f; - float random_volume_offset_db = 5.0f; + float random_pitch_scale = 1.0f; + float random_volume_offset_db = 0.0f; Ref instance_playback_random(); Ref instance_playback_no_repeats();