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.

AudioStreamPolyphonic

繼承: AudioStream < Resource < RefCounted < Object

允許使用者透過程式碼隨時播放自訂音訊流,並以單一播放器同時輸出。

說明

允許使用者透過程式碼隨時以單一播放器播放多條自訂音訊流。

播放控制透過播放器內的 AudioStreamPlaybackPolyphonic 實例完成,可呼叫 AudioStreamPlayer.get_stream_playback()AudioStreamPlayer2D.get_stream_playback()AudioStreamPlayer3D.get_stream_playback() 取得。僅當這些播放器的 stream 屬性已設為 AudioStreamPolyphonic 時,才能取得該實例。

教學

屬性

int

polyphony

32


屬性說明

int polyphony = 32 🔗

  • void set_polyphony(value: int)

  • int get_polyphony()

可同時播放的最大音訊流數量。