Add missing GDVIRTUAL_BIND(_get_supported_extensions) on MovieWriter

(cherry picked from commit 475e7452eb4a9e157acfe96f1949a4e266df2f16)
This commit is contained in:
David Snopek
2026-03-16 11:11:12 -05:00
committed by Thaddeus Crews
parent 92abb85445
commit 499ca0b8df
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -30,6 +30,12 @@
Called when the audio speaker mode used for recording the audio is requested by the engine. This can affect the number of output channels in the resulting audio file/stream. Defaults to [constant AudioServer.SPEAKER_MODE_STEREO] if [method _get_audio_speaker_mode] is not overridden. Called when the audio speaker mode used for recording the audio is requested by the engine. This can affect the number of output channels in the resulting audio file/stream. Defaults to [constant AudioServer.SPEAKER_MODE_STEREO] if [method _get_audio_speaker_mode] is not overridden.
</description> </description>
</method> </method>
<method name="_get_supported_extensions" qualifiers="virtual required const">
<return type="PackedStringArray" />
<description>
Returns the list of supported filename extensions for movies written with this [MovieWriter].
</description>
</method>
<method name="_handles_file" qualifiers="virtual required const"> <method name="_handles_file" qualifiers="virtual required const">
<return type="bool" /> <return type="bool" />
<param index="0" name="path" type="String" /> <param index="0" name="path" type="String" />
+1
View File
@@ -138,6 +138,7 @@ void MovieWriter::_bind_methods() {
GDVIRTUAL_BIND(_get_audio_speaker_mode) GDVIRTUAL_BIND(_get_audio_speaker_mode)
GDVIRTUAL_BIND(_handles_file, "path") GDVIRTUAL_BIND(_handles_file, "path")
GDVIRTUAL_BIND(_get_supported_extensions)
GDVIRTUAL_BIND(_write_begin, "movie_size", "fps", "base_path") GDVIRTUAL_BIND(_write_begin, "movie_size", "fps", "base_path")
GDVIRTUAL_BIND(_write_frame, "frame_image", "audio_frame_block") GDVIRTUAL_BIND(_write_frame, "frame_image", "audio_frame_block")