Union Bytes EngineModulesSoundsLoadSoundDefinition

Union Bytes Engine

GeneralHilfeseitensyntaxModules
AnimationBillboardCageCameraControlDefinitionDrawingFontGadgetGeneralJoystickLightMaterialMathMeshNetworkNodeObjectParticlePhysicShaderSounds
ExamineSoundsFreeSoundGetSoundLengthGetSoundStateIsSoundLoadSoundDefinitionLoadSoundFileMoveSoundPauseSoundPlaySoundResumeSoundRotateSoundSetCollisionSoundSetSoundConeSetSoundDirectionSetSoundFrequencySetSoundRangeSetSoundStateSetSoundVolumeSoundSoundIDStopSoundUnsetCollisionSound
SpriteTexture

LoadSoundDefinition

Description

Loads a new sound from the given definition.
Supported formats:

Syntax

Result.i = UBE_LoadSoundDefinition( Sound.i, *Definition )
Sound: SoundName {   

name of the sound (optional) File: Path

file name Mode: Modes

modes (optional): Play Background Loop Channel Dopplereffect Stream Volume: Value

volume (optional) [0.0, 1.0] Range: Min, Max

range (optional) Cone: Min, Max

cone (optional) Direction: X, Y, Z

direction of the cone (optional) Frequency: Value

frequency (optional) }

Parameters

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.

Return value

If the function fails #Null, otherwise the unique number of the sound.

See also

Union Bytes | Login