Skip to content

Commit

Permalink
Fix: set unmute volume to audio.volume (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1ada authored Jul 15, 2023
1 parent 0269575 commit 3641dad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/multitrack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ class MultiTrack extends EventEmitter<MultitrackEvents> {
}

// Unmute if cue is reached
const newVolume = newTime >= (track.startCue || 0) && newTime < (track.endCue || Infinity) ? 1 : 0
const newVolume = newTime >= (track.startCue || 0) && newTime < (track.endCue || Infinity) ? audio.volume : 0
if (newVolume !== audio.volume) audio.volume = newVolume
})
}
Expand Down

0 comments on commit 3641dad

Please sign in to comment.