Skip to content

Sound

getMusicForStage(stage?, stageType?): Music

Defined in: packages/isaacscript-common/src/functions/sound.ts:21

Helper function to get the corresponding music value for a stage and stage type combination.

LevelStage

Optional. The stage to get the music for. If not specified, the current stage will be used.

StageType

Optional. The stage type to get the music for. If not specified, the current stage type will be used.

Music


stopAllSoundEffects(soundEffectCustom?): void

Defined in: packages/isaacscript-common/src/functions/sound.ts:41

Helper function to manually stop every vanilla sound effect. If you also want to stop custom sound effects in addition to vanilla ones, then pass the SoundEffectCustom enum for your mod.

TranspiledEnum

Optional. The enum that represents all of the custom sound effects for your mod.

void