auto switch polling on output change when on default output

This commit is contained in:
Boof2015
2026-04-21 20:27:41 -04:00
parent db377c97b4
commit 70d299d5b8
5 changed files with 855 additions and 73 deletions
+1 -10
View File
@@ -1,4 +1,4 @@
import { useEffect, useLayoutEffect, useRef, useState, type CSSProperties, type JSX, type WheelEvent } from 'react'
import { useLayoutEffect, useRef, useState, type CSSProperties, type JSX, type WheelEvent } from 'react'
import { useNowPlayingStore } from '../stores/nowPlayingStore'
import { useAudioStore } from '../stores/audioStore'
import { usePerformanceStore } from '../stores/performanceStore'
@@ -133,9 +133,6 @@ export default function BottomBar({ onClose, onHeightChange }: BottomBarProps):
captureNotice,
inputGainDb,
clearCaptureNotice,
refreshSystemSources,
refreshDevices,
refreshBackendSupport,
selectSystemSource,
selectDevice,
startCapture,
@@ -143,12 +140,6 @@ export default function BottomBar({ onClose, onHeightChange }: BottomBarProps):
} = useAudioStore()
const showBanner = useUiStore((s) => s.showBanner)
useEffect(() => {
void refreshBackendSupport()
void refreshSystemSources()
void refreshDevices()
}, [refreshBackendSupport, refreshSystemSources, refreshDevices])
useLayoutEffect(() => {
if (!onHeightChange || !rootRef.current) return