Loads a new sound from the given definition.
Supported formats:
- Microsoft Wave (*.wav)
- Ogg-Vorbis-Audio (*.ogg)
Result.i = UBE_LoadSoundDefinition( Sound.i, *Definition )Sound: SoundName {name of the sound (optional) File: Path
file name Mode: Modesmodes (optional): Play Background Loop Channel Dopplereffect Stream Volume: Value
volume (optional) [0.0, 1.0] Range: Min, Maxrange (optional) Cone: Min, Max
cone (optional) Direction: X, Y, Zdirection of the cone (optional) Frequency: Value
frequency (optional) }
Sound
The number of the new sound.
You can use#UBE_ANY
to create a unique number.*Definition
A valid pointer to a sound definition.
If the function fails #Null
, otherwise the unique number of the sound.