logging on set sink id

Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
Timo K
2025-07-03 11:11:33 +02:00
parent 8dfd052a68
commit 313586bb3b

View File

@@ -114,6 +114,13 @@ export function useAudioContext<S extends string>(
// 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 &&