2018-08-21 00:35:30 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2020-01-26 16:01:49 +01:00
|
|
|
<class name="AudioEffectRecord" inherits="AudioEffect" version="3.2">
|
2018-08-21 00:35:30 +02:00
|
|
|
<brief_description>
|
2020-03-03 19:21:21 +01:00
|
|
|
Audio effect used for recording sound from a microphone.
|
2018-08-21 00:35:30 +02:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
<tutorials>
|
2020-03-03 19:21:21 +01:00
|
|
|
<link>https://docs.godotengine.org/en/latest/tutorials/audio/recording_with_microphone.html</link>
|
2018-08-21 00:35:30 +02:00
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
<method name="get_recording" qualifiers="const">
|
|
|
|
<return type="AudioStreamSample">
|
|
|
|
</return>
|
|
|
|
<description>
|
2020-03-03 19:21:21 +01:00
|
|
|
Returns the recorded sample.
|
2018-08-21 00:35:30 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="is_recording_active" qualifiers="const">
|
|
|
|
<return type="bool">
|
|
|
|
</return>
|
|
|
|
<description>
|
2020-03-03 19:21:21 +01:00
|
|
|
Returns whether the recording is active or not.
|
2018-08-21 00:35:30 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_recording_active">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="record" type="bool">
|
|
|
|
</argument>
|
|
|
|
<description>
|
2020-03-03 19:21:21 +01:00
|
|
|
If [code]true[/code], the sound will be recorded. Note that restarting the recording will remove the previously recorded sample.
|
2018-08-21 00:35:30 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
|
|
|
<members>
|
2019-06-29 12:38:01 +02:00
|
|
|
<member name="format" type="int" setter="set_format" getter="get_format" enum="AudioStreamSample.Format" default="1">
|
2020-03-03 19:21:21 +01:00
|
|
|
Specifies the format in which the sample will be recorded. See [enum AudioStreamSample.Format] for available formats.
|
2018-08-21 00:35:30 +02:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<constants>
|
|
|
|
</constants>
|
|
|
|
</class>
|