summaryrefslogtreecommitdiffstats
path: root/scene/2d/audio_stream_player_2d.h
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2023-08-07 17:33:07 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2023-08-07 18:06:17 +0200
commit49b6067aba3d3720293626ecbe9a277e59cac3a6 (patch)
treeb57fa14a4da6f8160e42770f35b76572f6d248e2 /scene/2d/audio_stream_player_2d.h
parentf2acfb1ffc94d0e381064070108e7a773d86177d (diff)
downloadredot-engine-49b6067aba3d3720293626ecbe9a277e59cac3a6.tar.gz
Use StringName consistently to refer to the Master audio bus name
Diffstat (limited to 'scene/2d/audio_stream_player_2d.h')
-rw-r--r--scene/2d/audio_stream_player_2d.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/2d/audio_stream_player_2d.h b/scene/2d/audio_stream_player_2d.h
index 9b23fd3943..a4677bef36 100644
--- a/scene/2d/audio_stream_player_2d.h
+++ b/scene/2d/audio_stream_player_2d.h
@@ -32,6 +32,7 @@
#define AUDIO_STREAM_PLAYER_2D_H
#include "scene/2d/node_2d.h"
+#include "scene/scene_string_names.h"
#include "servers/audio/audio_stream.h"
#include "servers/audio_server.h"
@@ -66,7 +67,7 @@ private:
float volume_db = 0.0;
float pitch_scale = 1.0;
bool autoplay = false;
- StringName default_bus = SNAME("Master");
+ StringName default_bus = SceneStringNames::get_singleton()->Master;
int max_polyphony = 1;
void _set_playing(bool p_enable);