Skip to content

Commit 3866a7f

Browse files
committed
Add missing GDVIRTUAL_BIND() for AudioStream::_has_loop() and ::_get_bar_beats()
1 parent 0f20e67 commit 3866a7f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

doc/classes/AudioStream.xml

+12
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
<link title="Audio Spectrum Visualizer Demo">https://godotengine.org/asset-library/asset/2762</link>
1414
</tutorials>
1515
<methods>
16+
<method name="_get_bar_beats" qualifiers="virtual const">
17+
<return type="int" />
18+
<description>
19+
Override this method to return the bar beats of this stream.
20+
</description>
21+
</method>
1622
<method name="_get_beat_count" qualifiers="virtual const">
1723
<return type="int" />
1824
<description>
@@ -45,6 +51,12 @@
4551
Override this method to customize the name assigned to this audio stream. Unused by the engine.
4652
</description>
4753
</method>
54+
<method name="_has_loop" qualifiers="virtual const">
55+
<return type="bool" />
56+
<description>
57+
Override this method to return [code]true[/code] if this stream has a loop.
58+
</description>
59+
</method>
4860
<method name="_instantiate_playback" qualifiers="virtual const">
4961
<return type="AudioStreamPlayback" />
5062
<description>

servers/audio/audio_stream.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@ void AudioStream::_bind_methods() {
352352
GDVIRTUAL_BIND(_get_bpm)
353353
GDVIRTUAL_BIND(_get_beat_count)
354354
GDVIRTUAL_BIND(_get_parameter_list)
355+
GDVIRTUAL_BIND(_has_loop);
356+
GDVIRTUAL_BIND(_get_bar_beats);
355357

356358
ADD_SIGNAL(MethodInfo("parameter_list_changed"));
357359
}

0 commit comments

Comments
 (0)