Skip to content

Class "SFXManager"⚓︎

Info

This class can be accessed by using its constructor:

Example Code
1
local sfxManager = SFXManager()

Constructors⚓︎

SFXManager ()⚓︎

SFXManager SFXManager ( )⚓︎

Returns a SFXManager object.

Example Code

Example usage:

1
SFXManager():Stop(SoundEffect.SOUND_1UP)


Functions⚓︎

Adjust·Pitch ()⚓︎

void AdjustPitch ( SoundEffect ID, float Pitch )⚓︎

mostly useful for repeating sounds


Adjust·Volume ()⚓︎

void AdjustVolume ( SoundEffect ID, float Volume )⚓︎

mostly useful for repeating sounds


Get·Ambient·Sound·Volume ()⚓︎

float GetAmbientSoundVolume ( SoundEffect ID )⚓︎


Is·Playing ()⚓︎

boolean IsPlaying ( SoundEffect ID )⚓︎


Play ()⚓︎

void Play ( SoundEffect ID, float Volume = 1, int FrameDelay = 2, boolean Loop = false, float Pitch = 1, float Pan = 0 )⚓︎

Despite its name, FrameDelay does NOT add a delay before the sound plays. Rather, it determines how many frames must pass before the sound can be played again.


Preload ()⚓︎

void Preload ( SoundEffect ID )⚓︎


Set·Ambient·Sound ()⚓︎

void SetAmbientSound ( SoundEffect ID, float Volume, float Pitch )⚓︎


Stop ()⚓︎

void Stop ( SoundEffect ID )⚓︎


Stop·Looping·Sounds ()⚓︎

void StopLoopingSounds ( )⚓︎



Last update: April 26, 2024