LoadSound()

语法

Result = LoadSound(#Sound, Filename$ [, Flags])
概要
Load a WAV (in PCM format, ADPCM is not supported) or any other format supported by the SoundPlugin library into memory. The following functions can be used to enable automatically more sound format:

UseFLACSoundDecoder()
UseOGGSoundDecoder()

参数

#Sound A number to identify the new sound. #PB_Any can be used to auto-generate this number.
Filename$ The filename to use to load the sound.
Flags (optional) It can be the following value:
  #PB_Sound_Streaming: Enable sound streaming playback (only supported for FLAC and OGG))

返回值

Nonzero if the sound has been successfully loaded, zero otherwise.

参阅

CatchSound(), FreeSound(), PlaySound()

已支持操作系统

所有

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