feat: improve gain section

This commit is contained in:
2026-07-28 18:41:40 +02:00
parent eab62e151e
commit 255b1f217e
9 changed files with 129 additions and 204 deletions
+3 -5
View File
@@ -6,7 +6,7 @@ import ConnectionPanel from '../../components/dsp408/ConnectionSection/Connectio
import GainSection from '../../components/dsp408/GainSection/GainSection';
import { DSP408Device } from '../../hooks/useDSP408';
import './DspPage.css';
// import GateSection from '../../components/dsp408/GateSection/GateSection';
import GateSection from '../../components/dsp408/GateSection/GateSection';
import LoadingOverlay from '../../components/LoadingOverlay/LoadingOverlay';
import { InputChannel, OutputChannel } from '../../types/dsp408State';
@@ -147,8 +147,6 @@ function DSPPage({ dsp, dsp408 }: { dsp: DSP; dsp408: DSP408Device }) {
})),
];
// const { recallPreset, setCurrentPresetName } = useDSPPresets(dsp, setDsps, notify);
const onAppChange = async (id: string) => {
const presetIndex = presets.findIndex((preset) => preset.id === id);
if (presetIndex === -1) return;
@@ -178,8 +176,8 @@ function DSPPage({ dsp, dsp408 }: { dsp: DSP; dsp408: DSP408Device }) {
/>
);
// case 'gate':
// return <GateSection dsp={dsp} notify={notify} />;
case 'gate':
return <GateSection dsp={dsp} />;
default:
return null;