godot/doc/classes/AudioEffectRecord.xml

44 lines
1.9 KiB
XML
Raw Permalink Normal View History

2018-08-20 22:35:30 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2022-08-05 16:51:38 +00:00
<class name="AudioEffectRecord" inherits="AudioEffect" version="3.6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
2018-08-20 22:35:30 +00:00
<brief_description>
Audio effect used for recording the sound from an audio bus.
2018-08-20 22:35:30 +00:00
</brief_description>
<description>
Allows the user to record the sound from an audio bus. This can include all audio output by Godot when used on the "Master" audio bus.
Can be used (with an [AudioStreamMicrophone]) to record from a microphone.
It sets and gets the format in which the audio file will be recorded (8-bit, 16-bit, or compressed). It checks whether or not the recording is active, and if it is, records the sound. It then returns the recorded sample.
2018-08-20 22:35:30 +00:00
</description>
<tutorials>
<link title="Recording with microphone">$DOCS_URL/tutorials/audio/recording_with_microphone.html</link>
<link title="Audio Mic Record Demo">https://godotengine.org/asset-library/asset/527</link>
2018-08-20 22:35:30 +00:00
</tutorials>
<methods>
<method name="get_recording" qualifiers="const">
<return type="AudioStreamSample" />
2018-08-20 22:35:30 +00:00
<description>
Returns the recorded sample.
2018-08-20 22:35:30 +00:00
</description>
</method>
<method name="is_recording_active" qualifiers="const">
<return type="bool" />
2018-08-20 22:35:30 +00:00
<description>
Returns whether the recording is active or not.
2018-08-20 22:35:30 +00:00
</description>
</method>
<method name="set_recording_active">
<return type="void" />
<argument index="0" name="record" type="bool" />
2018-08-20 22:35:30 +00:00
<description>
If [code]true[/code], the sound will be recorded. Note that restarting the recording will remove the previously recorded sample.
2018-08-20 22:35:30 +00:00
</description>
</method>
</methods>
<members>
<member name="format" type="int" setter="set_format" getter="get_format" enum="AudioStreamSample.Format" default="1">
Specifies the format in which the sample will be recorded. See [enum AudioStreamSample.Format] for available formats.
2018-08-20 22:35:30 +00:00
</member>
</members>
<constants>
</constants>
</class>