AudioStreamPlaylist

继承: AudioStream < Resource < RefCounted < Object

AudioStream that includes sub-streams and plays them back like a playlist.

属性

方法

floatget_bpm ( ) const1
AudioStreamget_list_stream ( stream_index: int ) const1
voidset_list_stream ( stream_index: int, audio_stream: AudioStream )

常量

MAX_STREAMS = 64

Maximum amount of streams supported in the playlist.


属性说明

float fade_time = 0.3

  • void set_fade_time ( value: float )
  • float get_fade_time ( )

Fade time used when a stream ends, when going to the next one. Streams are expected to have an extra bit of audio after the end to help with fading.


bool loop = true

  • void set_loop ( value: bool )
  • bool has_loop ( )

If true, the playlist will loop, otherwise the playlist will end when the last stream is finished.


bool shuffle = false

  • void set_shuffle ( value: bool )
  • bool get_shuffle ( )

If true, the playlist will shuffle each time playback starts and each time it loops.


int stream_count = 0

  • void set_stream_count ( value: int )
  • int get_stream_count ( )

Amount of streams in the playlist.


方法说明

float get_bpm ( ) const1

Returns the BPM of the playlist, which can vary depending on the clip being played.


AudioStream get_list_stream ( stream_index: int ) const1

Returns the stream at playback position index.


void set_list_stream ( stream_index: int, audio_stream: AudioStream )

Sets the stream at playback position index.

2

本方法通常需要用户覆盖才能生效。

1

本方法无副作用,不会修改该实例的任何成员变量。

3

本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。

4

本方法用于构造某个类型。

5

调用本方法无需实例,可直接使用类名进行调用。

6

本方法描述的是使用本类型作为左操作数的有效运算符。

7

这个值是由下列位标志构成位掩码的整数。

8

无返回值。