LoadSound3D()

Syntax

Result = LoadSound3D(#Sound3D, Filename$ [, Flags])
Description
Loads a WAV or an OGG sound file. The sound has to be mono, as stereo sounds doesn't allow space positioning.

Parameters

#Sound3D A number to identify the new sound. #PB_Any can be used to auto-generate this number.
Filename$ The sound filename to load.
Flags (optional) It can be the following value:
  #PB_Sound3D_Streaming: Enable sound streaming playback

Return value

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

Remarks

A sound doesn't hold its position. It can be attached to a node object to have its own position. A sound is played relative to the listener location. To change the listener location, use SoundListenerLocate().

Supported OS

All

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