SoundLength()

语法

SoundLength(#Sound [, Mode])
概要
Get the length of the sound.

参数

#Sound The sound to use.
Mode (optional) The mode used to get the length. It can be one of the following value:
  #PB_Sound_Frame      : the length is returned in frame (default). 
  #PB_Sound_Millisecond: the length is returned in milliseconds.

返回值

The length of the sound, or -1 if an error occurred.

Remarks

Sounds loaded with the #PB_Sound_Streaming flag are not supported.

已支持操作系统

所有

<- SetSoundPosition() - Sound Index - SoundPan() ->