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...
AudioStreamSynchronized
继承: AudioStream < Resource < RefCounted < Object
能够适配子音频流的音频流,子音频流会同步播放。
描述
这是一种能够适配子音频流的音频流,子音频流会同步播放。按下播放时,各条音频流会同时开始播放,最后一条音频流结束播放后该音频流才会结束。如果存在循环的子音频流,那么播放就会继续。
属性
|
方法
get_sync_stream(stream_index: int) const |
|
get_sync_stream_volume(stream_index: int) const |
|
void |
set_sync_stream(stream_index: int, audio_stream: AudioStream) |
void |
set_sync_stream_volume(stream_index: int, volume_db: float) |
常量
MAX_STREAMS = 32
🔗
可以同步播放的音频流的最大数量。
属性说明
设置同步播放的音频流的总数。
方法说明
AudioStream get_sync_stream(stream_index: int) const 🔗
获取同步的音频流,使用索引号指定。
float get_sync_stream_volume(stream_index: int) const 🔗
获取同步音频流的音量,使用索引号指定。
void set_sync_stream(stream_index: int, audio_stream: AudioStream) 🔗
设置同步的音频流,使用索引号指定。
void set_sync_stream_volume(stream_index: int, volume_db: float) 🔗
设置同步音频流的音量,使用索引号指定。