AudioEffectRecord

Hereda: AudioEffect < Resource < RefCounted < Object

Efecto de audio utilizado para grabar el sonido de un bus de audio.

Descripción

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 Godot.

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.

Tutoriales

Propiedades

Format

format

1

Métodos

AudioStreamWAV

get_recording() const

bool

is_recording_active() const

void

set_recording_active(record: bool)


Descripciones de Propiedades

Format format = 1 🔗

Especifica el formato en que se grabará la muestra.


Descripciones de Métodos

AudioStreamWAV get_recording() const 🔗

Devuelve la muestra registrada.


bool is_recording_active() const 🔗

Devuelve si la grabación está activa o no.


void set_recording_active(record: bool) 🔗

Si es true, el sonido será grabado. Ten en cuenta que al reiniciar la grabación se eliminará la muestra previamente grabada.