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.
Checking the stable version of the documentation...
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.
Посібники
Властивості
|
Методи
get_recording() const |
|
is_recording_active() const |
|
void |
set_recording_active(record: bool) |
Описи властивостей
Визначає формат, у якому буде записано семпл.
Описи методів
AudioStreamWAV get_recording() const 🔗
Повертає записаний зразок.
bool is_recording_active() const 🔗
Повертає, чи активний запис чи ні.
void set_recording_active(record: bool) 🔗
Якщо true, звук буде записано. Зауважте, що перезапуск запису видалить попередньо записаний зразок.