PlaySound()

语法

Result = PlaySound(#Sound [, Flags [, Volume]])
概要
Start to play the specified sound.

参数

#Sound The sound to play.
Flags (optional) It can be a combination of the following values:
  #PB_Sound_Loop        : play the sound continuously (starts again when end is reached)
  #PB_Sound_MultiChannel: play the sound in a new channel instead of stopping the
        previously played sound. This allows to use the same sound and to play it on different
        channels at once. 'Result' will be new allocated channel, and can be used by the
        other sound commands like SoundVolume(), SoundPan() etc.
Volume (optional) Sets the initial volume of the #Sound. The valid values are from 0 (no volume) to 100 (full volume). The default value is 100.

返回值

The channel number, if the #PB_Sound_MultiChannel flag is used.

参阅

StopSound(), FreeSound(), PauseSound(), ResumeSound()

已支持操作系统

所有

<- PauseSound() - Sound Index - ResumeSound() ->