MCPcopy Create free account
hub / github.com/NianBroken/Firework_Simulator / canPlaySoundSelector

Function canPlaySoundSelector

js/script.js:292–292  ·  view source on GitHub ↗
(state = store.state)

Source from the content-addressed store, hash-verified

290const soundEnabledSelector = (state = store.state) => state.soundEnabled;
291// Whether any sounds are allowed, taking into account multiple factors.
292const canPlaySoundSelector = (state = store.state) => isRunning(state) && soundEnabledSelector(state);
293// Convert quality to number.
294const qualitySelector = () => +store.state.config.quality;
295const shellNameSelector = () => store.state.config.shell;

Callers 2

handleStateChangeFunction · 0.85
playSoundFunction · 0.85

Calls 2

isRunningFunction · 0.85
soundEnabledSelectorFunction · 0.85

Tested by

no test coverage detected