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) 🔗
依索引設定其中一個同步串流的音量。