diff --git a/doc/classes/AudioStream.xml b/doc/classes/AudioStream.xml index d11e070d89b..52e99512813 100644 --- a/doc/classes/AudioStream.xml +++ b/doc/classes/AudioStream.xml @@ -13,6 +13,12 @@ https://godotengine.org/asset-library/asset/2762 + + + + Override this method to return the bar beats of this stream. + + @@ -45,6 +51,12 @@ Override this method to customize the name assigned to this audio stream. Unused by the engine. + + + + Override this method to return [code]true[/code] if this stream has a loop. + + diff --git a/servers/audio/audio_stream.cpp b/servers/audio/audio_stream.cpp index d5c37c2acca..70f005930bb 100644 --- a/servers/audio/audio_stream.cpp +++ b/servers/audio/audio_stream.cpp @@ -352,6 +352,8 @@ void AudioStream::_bind_methods() { GDVIRTUAL_BIND(_get_bpm) GDVIRTUAL_BIND(_get_beat_count) GDVIRTUAL_BIND(_get_parameter_list) + GDVIRTUAL_BIND(_has_loop); + GDVIRTUAL_BIND(_get_bar_beats); ADD_SIGNAL(MethodInfo("parameter_list_changed")); }