summaryrefslogtreecommitdiffstats
path: root/scene/audio/audio_stream_player_internal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/audio/audio_stream_player_internal.cpp')
-rw-r--r--scene/audio/audio_stream_player_internal.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/audio/audio_stream_player_internal.cpp b/scene/audio/audio_stream_player_internal.cpp
index 19b3ec481b..ed3c43818e 100644
--- a/scene/audio/audio_stream_player_internal.cpp
+++ b/scene/audio/audio_stream_player_internal.cpp
@@ -307,14 +307,14 @@ StringName AudioStreamPlayerInternal::get_bus() const {
return bus;
}
}
- return SceneStringNames::get_singleton()->Master;
+ return SceneStringName(Master);
}
AudioStreamPlayerInternal::AudioStreamPlayerInternal(Node *p_node, const Callable &p_play_callable, bool p_physical) {
node = p_node;
play_callable = p_play_callable;
physical = p_physical;
- bus = SceneStringNames::get_singleton()->Master;
+ bus = SceneStringName(Master);
AudioServer::get_singleton()->connect("bus_layout_changed", callable_mp((Object *)node, &Object::notify_property_list_changed));
AudioServer::get_singleton()->connect("bus_renamed", callable_mp((Object *)node, &Object::notify_property_list_changed).unbind(3));