Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor() {
Howler.unload();
}
export function setSaveData(data) {
Howler.unload();
Pool = {};
Howler.mute(data.globalMuted);
Howler.volume(data.globalVolume);
ChannelVolume = data.channelVolume;
const channelData = data.channelData;
for (const item of channelData) {
create(item.channel, item.src, {
volume: item.volume,
loop: item.loop,
autoplay: false,
mute: item.mute,
rate: item.rate
constructor(audioData = NO_SOUND) {
Howler.unload();
this.bong = new Howl({
volume: 1.0,
src: BONG_SOUND,
});
this.player = createSoundPlayer(audioData);
}
service.stopAllSounds = function() {
logger.info("Stopping all sounds...");
Howler.unload();
};
killAllSounds: () => {
Howler.unload()
return {
type: constants.KILL_ALL_SOUNDS
}
}
}