From 313586bb3b89bcc1146c1b42cfa9d58d5ffcc2e6 Mon Sep 17 00:00:00 2001 From: Timo K Date: Thu, 3 Jul 2025 11:11:33 +0200 Subject: [PATCH] logging on set sink id Signed-off-by: Timo K --- src/useAudioContext.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/useAudioContext.tsx b/src/useAudioContext.tsx index 1b00e82b..da68d02a 100644 --- a/src/useAudioContext.tsx +++ b/src/useAudioContext.tsx @@ -114,6 +114,13 @@ export function useAudioContext( // Update the sink ID whenever we change devices. useEffect(() => { + logger.info( + "setSinkId hook:", + `"setSinkId" in audioContext`, + audioContext && "setSinkId" in audioContext, + `!controlledAudioDevices`, + !controlledAudioDevices, + ); if ( audioContext && "setSinkId" in audioContext &&