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
用于录制来自音频总线的声音的音频效果。
描述
允许用户将音频总线的声音录制到 AudioStreamWAV 中。当在“主”音频总线上使用时,这包括 Godot 的所有音频输出。
与 AudioEffectCapture 不同,该效果以给定格式(8 位、16 位或压缩)对录音进行编码,而不是提供对原始音频样本的访问。
可被用于(与 AudioStreamMicrophone 一起)从麦克风进行录音。
注意:ProjectSettings.audio/driver/enable_input 必须为 true
音频输入才能正常工作。另请参阅该设置的说明,了解与权限和操作系统隐私设置相关的注意事项。
教程
属性
|
方法
get_recording() const |
|
is_recording_active() const |
|
void |
set_recording_active(record: bool) |
属性说明
指定样本将被记录的格式。有关可用格式,请参阅 Format。
方法说明
AudioStreamWAV get_recording() const 🔗
返回录音的样本。
bool is_recording_active() const 🔗
返回录音是否处于激活状态。
void set_recording_active(record: bool) 🔗
如果为 true
,将录制声音。请注意,重新开始录音将移除先前录音的样本。