Disable All Sound
Classes
Section titled “Classes”DisableAllSound
Section titled “DisableAllSound”Defined in: packages/isaacscript-common/src/classes/features/other/DisableAllSound.ts:13
Extends
Section titled “Extends”Feature
Methods
Section titled “Methods”enableAllSound()
Section titled “enableAllSound()”enableAllSound(
key):void
Defined in: packages/isaacscript-common/src/classes/features/other/DisableAllSound.ts:51
Helper function to stop muting all sound effects and music.
Use this function to set things back to normal after having used disableAllSounds.
In order to use this function, you must upgrade your mod with ISCFeature.DISABLE_ALL_SOUND.
Parameters
Section titled “Parameters”string
The name of the mod feature that is requesting the enable/disable. For example, if this was part of the code for a custom enemy called “Super Gaper”, then you could use a key of “SuperGaper”. The name is necessary so that multiple mod features can work in tandem.
Returns
Section titled “Returns”void
disableAllSound()
Section titled “disableAllSound()”disableAllSound(
key):void
Defined in: packages/isaacscript-common/src/classes/features/other/DisableAllSound.ts:79
Helper function to disable all sound effects and music (by constantly musting them).
Use the enableAllSounds helper function to set things back to normal.
In order to use this function, you must upgrade your mod with ISCFeature.DISABLE_ALL_SOUND.
Parameters
Section titled “Parameters”string
The name of the mod feature that is requesting the enable/disable. For example, if this was part of the code for a custom enemy called “Super Gaper”, then you could use a key of “SuperGaper”. The name is necessary so that multiple mod features can work in tandem.
Returns
Section titled “Returns”void
