Skip to content

Commit

Permalink
move cleanup function higher
Browse files Browse the repository at this point in the history
  • Loading branch information
naomiaro committed Feb 5, 2022
1 parent b983adb commit 7a2836e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/waveform-playlist/js/waveform-playlist.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/Playout.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ export default class {
this.panner.disconnect();
this.masterGain.disconnect();

if (cleanupEffects) cleanupEffects();
if (cleanupMasterEffects) cleanupMasterEffects();

this.source = undefined;
this.fadeGain = undefined;
this.volumeGain = undefined;
this.shouldPlayGain = undefined;
this.panner = undefined;

if (cleanupEffects) cleanupEffects();
if (cleanupMasterEffects) cleanupMasterEffects();

resolve();
};
});
Expand Down

0 comments on commit 7a2836e

Please sign in to comment.