Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

AudioEffectRecord

Eredita: AudioEffect < Resource < RefCounted < Object

Effetto audio utilizzato per la registrazione di suoni provenienti da un bus audio.

Descrizione

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.

Tutorial

Proprietà

Format

format

1

Metodi

AudioStreamWAV

get_recording() const

bool

is_recording_active() const

void

set_recording_active(record: bool)


Descrizioni delle proprietà

Format format = 1 🔗

Specifica il formato in cui sarà registrato il campione.


Descrizioni dei metodi

AudioStreamWAV get_recording() const 🔗

Restituisce il campione registrato.


bool is_recording_active() const 🔗

Restituisce se la registrazione è attiva o no.


void set_recording_active(record: bool) 🔗

Se true, il suono verrà registrato. Tieni presente che il riavvio della registrazione rimuoverà il campione registrato in precedenza.