GetSoundPosition()

语法

Result = GetSoundPosition(#Sound [, Mode [, Channel]])
概要
Get the current sound position.

参数

#Sound The sound to use.
Mode (optional) The mode used to get the position. It can be one of the following value:
  #PB_Sound_Frame      : the position is returned in frame (default). 
  #PB_Sound_Millisecond: the position is returned in milliseconds.
Channel (optional) The channel to get the position. It's the value returned by PlaySound() when using the #PB_Sound_MultiChannel flag.

返回值

The current sound position or -1 if an error occurred.

Remarks

Sounds loaded with the #PB_Sound_Streaming flag are not supported.

参阅

SetSoundPosition()

已支持操作系统

所有

<- GetSoundFrequency() - Sound Index - InitSound() ->