Skip to content

SfxPlaying

Description

Checks if the given sound effect is playing in any channels.

Parameters

sfx

The slot of the sound effect.

Return Value

Returns the result of the check as a bool32.

Syntax

RSDK.SfxPlaying(uint16 sfx);
SoundFX.IsPlaying();

Example

bool32 isPlaying = RSDK.SfxPlaying(MyObject->mySfx);
bool32 isPlaying = sVars->mySfx.IsPlaying();