Fix: rewire OnPullMicSamples in RecreateDSPEngine

RecreateDSPEngine rebound OnAudio/OnSpectrum/OnWaterfall/OnTXIQ onto the
freshly created DSP engine but not OnPullMicSamples, so the sound-card mic
path was lost after a sample-rate change. Rebind it alongside the others.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Uladzimir Karpenka
2026-06-08 10:50:24 +03:00
co-authored by Claude Opus 4.8
parent 3a387e06ce
commit 452795dc59
+3
View File
@@ -3535,6 +3535,9 @@ begin
FController.FDSPEngine.OnSpectrum := OnSpectrumReady; FController.FDSPEngine.OnSpectrum := OnSpectrumReady;
FController.FDSPEngine.OnWaterfall := OnWaterfallReady; FController.FDSPEngine.OnWaterfall := OnWaterfallReady;
FController.FDSPEngine.OnTXIQ := FController.OnTXIQ; FController.FDSPEngine.OnTXIQ := FController.OnTXIQ;
// Иначе sound-card mic путь теряется после смены sample rate (колбэк
// навешивается в FormCreate, но новый движок про него не знал).
FController.FDSPEngine.OnPullMicSamples := FController.PullSoundCardMic;
end; end;
function TMainForm.EnsureWDSPWisdom: Boolean; function TMainForm.EnsureWDSPWisdom: Boolean;