Class reference

AudioEffectRecord

Inherits AudioEffect

Audio effect used for recording the sound from an audio bus.

Description

Allows the user to record the sound from an audio bus into an AudioStreamWAV. When used on the "Master" audio bus, this includes all audio output by Redot. Unlike AudioEffectCapture, this effect encodes the recording with the given format (8-bit, 16-bit, or compressed) instead of giving access to the raw audio samples. Can be used (with an AudioStreamMicrophone) to record from a microphone. Note: ProjectSettings.audio/driver/enable_input must be true for audio input to work. See also that setting's description for caveats related to permissions and operating system privacy settings.

Properties

int format = 1

Specifies the format in which the sample will be recorded.

Methods

bool is_recording_active() const

Returns whether the recording is active or not.

void set_recording_active(bool record)

If true, the sound will be recorded. Note that restarting the recording will remove the previously recorded sample.

Tutorials

Source revision 5592dc3a7a61
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.