Skip to content

Commit

Permalink
Fix(p-worship-pads): Fade out not smooth
Browse files Browse the repository at this point in the history
  • Loading branch information
Vija02 committed Nov 27, 2024
1 parent bf4b19a commit 7226df3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions plugins/worship-pads/view/Renderer/HowlerPlayer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Howl } from "howler";

const silent = 0.01;
const silent = 0;

export class HowlerPlayer {
public sounds: Map<string, Howl>;
Expand Down Expand Up @@ -101,11 +101,6 @@ export class HowlerPlayer {

// Update current track
this.currentTrack = toId;

// Stop the old track after fade
setTimeout(() => {
fromSound.stop();
}, duration);
}
}

Expand All @@ -116,9 +111,6 @@ export class HowlerPlayer {
if (sound) {
this.currentTrack = null;
this.smoothFade(sound, sound.volume(), silent, duration);
setTimeout(() => {
sound.stop();
}, duration);
}
}

Expand Down

0 comments on commit 7226df3

Please sign in to comment.