mirror of
https://git.vladimir.cc/vladimir/ewsdr.git
synced 2026-08-25 20:37:33 +00:00
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:
co-authored by
Claude Opus 4.8
parent
3a387e06ce
commit
452795dc59
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user