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

Успадковує: AudioEffect < Resource < RefCounted < Object

Аудіоефект, який використовується для запису звуку з аудіошини.

Опис

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.

Посібники

Властивості

Format

format

1

Методи

AudioStreamWAV

get_recording() const

bool

is_recording_active() const

void

set_recording_active(record: bool)


Описи властивостей

Format format = 1 🔗

Визначає формат, у якому буде записано семпл.


Описи методів

AudioStreamWAV get_recording() const 🔗

Повертає записаний зразок.


bool is_recording_active() const 🔗

Повертає, чи активний запис чи ні.


void set_recording_active(record: bool) 🔗

Якщо true, звук буде записано. Зауважте, що перезапуск запису видалить попередньо записаний зразок.