Skip to content

Commit

Permalink
fix duplicate chime
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkaufman committed Jan 7, 2021
1 parent ccc9d57 commit 31efee5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion html/audio-worklet.js
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,9 @@ class Player extends AudioWorkletProcessor {
}
return;
} else if (msg.type == "play_chime") {
this.chime_sample_index = 0;
if (this.chime_sample_index == null) {
this.chime_sample_index = 0;
}
return;
} else if (msg.type == "mic_pause_mode") {
this.mic_pause_mode = msg.enabled;
Expand Down

0 comments on commit 31efee5

Please sign in to comment.