mirror of
https://github.com/Boof2015/prism.git
synced 2026-08-19 20:09:43 +02:00
significantly improve latency
This commit is contained in:
@@ -19,7 +19,10 @@ export default function App(): JSX.Element {
|
||||
|
||||
// Auto-capture on launch
|
||||
useEffect(() => {
|
||||
useAudioStore.getState().startCapture()
|
||||
const { isCapturing, captureStatus, startCapture } = useAudioStore.getState()
|
||||
if (!isCapturing && captureStatus !== 'connecting') {
|
||||
void startCapture()
|
||||
}
|
||||
}, [])
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user