Sound
Functions
Section titled “Functions”getMusicForStage()
Section titled “getMusicForStage()”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.
Parameters
Section titled “Parameters”stage?
Section titled “stage?”LevelStage
Optional. The stage to get the music for. If not specified, the current stage will be used.
stageType?
Section titled “stageType?”StageType
Optional. The stage type to get the music for. If not specified, the current stage type will be used.
Returns
Section titled “Returns”Music
stopAllSoundEffects()
Section titled “stopAllSoundEffects()”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.
Parameters
Section titled “Parameters”soundEffectCustom?
Section titled “soundEffectCustom?”Optional. The enum that represents all of the custom sound effects for your mod.
Returns
Section titled “Returns”void
