Union Bytes EngineModulesSoundsSetSoundVolume

Union Bytes Engine

GeneralHilfeseitensyntaxModules
AnimationBillboardCageCameraControlDefinitionDrawingFontGadgetGeneralJoystickLightMaterialMathMeshNetworkNodeObjectParticlePhysicShaderSounds
ExamineSoundsFreeSoundGetSoundLengthGetSoundStateIsSoundLoadSoundDefinitionLoadSoundFileMoveSoundPauseSoundPlaySoundResumeSoundRotateSoundSetCollisionSoundSetSoundConeSetSoundDirectionSetSoundFrequencySetSoundRangeSetSoundStateSetSoundVolumeSoundSoundIDStopSoundUnsetCollisionSound
SpriteTexture

SetSoundVolume

Description

Sets the volume of the specified sound.

Syntax

UBE_SetSoundVolume( Sound.i, Volume.f )

Parameters

Sound The number of the sound or #UBE_GLOBAL.
Volume A value between 0.0 and 1.0 of the new volume. This value is the personal sound volume or the global sound volume if Sound is set to #UBE_Global.

Return value

None

Remarks

The absolute audible volume of the sound depends (multiplicative) on the global sound volume, the personal volume and the position and orientation of the sound and the listener (camera) by sound range, sound direction and sound cone.

See also

Union Bytes | Login