LoadSound3D()

Syntax

Result = LoadSound3D(#Sound3D, Filename$ [, Flags])
Description
Load a WAV or an OGG sound file into memory. The sound has to be mono, as stereo sounds doesn't allow space positioning. If #PB_Any is used as '#Sound3D' parameter, the new sound number will be returned as 'Result'. If the 'Result' is not 0, the sound has been correctly loaded and is ready to be played with the function PlaySound3D(), else the sound loading has failed.

The 'Flags' optional parameter can be a combination of the following values:
  #PB_Sound3D_Streaming: Enable sound streaming playback
Note: a sound doesn't hold its position. It can be attached to a node object to have its own position.

Supported OS

All

<- IsSound3D() - Sound3D Index - PlaySound3D() ->