From c8756d052816166fb69852f04cef26ecb2b7f5f1 Mon Sep 17 00:00:00 2001 From: NeilClack Date: Wed, 15 Apr 2026 11:50:03 -0500 Subject: [PATCH] Recurse if inited but no deviceOpen --- internal/mixer/mixer.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/mixer/mixer.go b/internal/mixer/mixer.go index 65da5d4..da7dff9 100644 --- a/internal/mixer/mixer.go +++ b/internal/mixer/mixer.go @@ -113,8 +113,11 @@ func Play(path string, loopForever bool, cfg *db.AppConfig) error { defer mu.Unlock() // Check if mixer has been initialized and that a device is open - // JUMP: This is where the issue is... if !inited || !deviceOpen { + if !deviceOpen { + SwitchDevice("") // Re-switch to the default device + Play(path, loopForever, cfg) // Re-run the function + } logger.Error("audio mixer not initialized") return errors.New("audio mixer not initialized") }