You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Add missing GDVIRTUAL_BIND() for AudioStream::_has_loop() and ::_get_bar_beats()
This commit is contained in:
@@ -13,6 +13,12 @@
|
|||||||
<link title="Audio Spectrum Visualizer Demo">https://godotengine.org/asset-library/asset/2762</link>
|
<link title="Audio Spectrum Visualizer Demo">https://godotengine.org/asset-library/asset/2762</link>
|
||||||
</tutorials>
|
</tutorials>
|
||||||
<methods>
|
<methods>
|
||||||
|
<method name="_get_bar_beats" qualifiers="virtual const">
|
||||||
|
<return type="int" />
|
||||||
|
<description>
|
||||||
|
Override this method to return the bar beats of this stream.
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
<method name="_get_beat_count" qualifiers="virtual const">
|
<method name="_get_beat_count" qualifiers="virtual const">
|
||||||
<return type="int" />
|
<return type="int" />
|
||||||
<description>
|
<description>
|
||||||
@@ -45,6 +51,12 @@
|
|||||||
Override this method to customize the name assigned to this audio stream. Unused by the engine.
|
Override this method to customize the name assigned to this audio stream. Unused by the engine.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="_has_loop" qualifiers="virtual const">
|
||||||
|
<return type="bool" />
|
||||||
|
<description>
|
||||||
|
Override this method to return [code]true[/code] if this stream has a loop.
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
<method name="_instantiate_playback" qualifiers="virtual const">
|
<method name="_instantiate_playback" qualifiers="virtual const">
|
||||||
<return type="AudioStreamPlayback" />
|
<return type="AudioStreamPlayback" />
|
||||||
<description>
|
<description>
|
||||||
|
|||||||
@@ -352,6 +352,8 @@ void AudioStream::_bind_methods() {
|
|||||||
GDVIRTUAL_BIND(_get_bpm)
|
GDVIRTUAL_BIND(_get_bpm)
|
||||||
GDVIRTUAL_BIND(_get_beat_count)
|
GDVIRTUAL_BIND(_get_beat_count)
|
||||||
GDVIRTUAL_BIND(_get_parameter_list)
|
GDVIRTUAL_BIND(_get_parameter_list)
|
||||||
|
GDVIRTUAL_BIND(_has_loop);
|
||||||
|
GDVIRTUAL_BIND(_get_bar_beats);
|
||||||
|
|
||||||
ADD_SIGNAL(MethodInfo("parameter_list_changed"));
|
ADD_SIGNAL(MethodInfo("parameter_list_changed"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user