Skip to content

The open-source AI voice studio. Clone, dictate, create.

fix: don't reset audio player when unmuting during playback

James Pineca602de0aeb5
diff --git a/landing/src/components/LandingAudioPlayer.tsx b/landing/src/components/LandingAudioPlayer.tsx
index a92cd443..d240fc4a 100644
--- a/landing/src/components/LandingAudioPlayer.tsx
+++ b/landing/src/components/LandingAudioPlayer.tsx
@@ -20,7 +20,9 @@ export function unlockAudioContext() {
audioUnlocked = true;
// Unlock WaveSurfer's internal audio element
- if (sharedWaveSurfer) {
+ // Skip if already playing — the context is already unlocked and the
+ // play/pause/reset dance would destroy the active playback.
+ if (sharedWaveSurfer && !sharedWaveSurfer.isPlaying()) {
const media = sharedWaveSurfer.getMediaElement();
if (media) {
media.muted = true;