API reference
usePlaySFX
strata-game-library/audio-synth
strata-game-library/audio-synth
strata-game-library/audio-synth / usePlaySFX
Function: usePlaySFX()
usePlaySFX(): (
preset) =>void
Defined in: components/AudioSynthProvider.tsx:201
Hook to get the playSFX function directly.
Returns
playSFX function or no-op if not in context
(
preset):void
Parameters
preset
string | SFXPreset
Returns
void
