diff --git a/webui/src/components/Sink/SinkContextMenu.tsx b/webui/src/components/Sink/SinkContextMenu.tsx index 5d988ee0..765685e3 100644 --- a/webui/src/components/Sink/SinkContextMenu.tsx +++ b/webui/src/components/Sink/SinkContextMenu.tsx @@ -18,6 +18,7 @@ import UpdateIcon from '@material-ui/icons/Update'; import { useRegisterForPipe, useUnpipeAction } from 'utils/useSoundSyncState'; import { nameWithoutHiddenMeta, isHidden } from 'utils/hiddenUtils'; import { AudioSink } from '../../../../src/audio/sinks/audio_sink'; +import { WebAudioSink } from '../../../../src/audio/sinks/webaudio_sink'; const DELETABLE_SINK_TYPES = ['huelight', 'airplay']; @@ -191,6 +192,7 @@ export const SinkContextMenu = ({ {sink.latencyCorrection === 0 && Set latency correction} {canBeDeleted && Delete} {window.localStorage.getItem('soundsync:debug') && console.log(sink)}>Log info} + {window.localStorage.getItem('soundsync:debug') && sink instanceof WebAudioSink && sink instanceof WebAudioSink && sink.audioClockDriftHistory.flush()}>Flush drift info} );