File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -528,6 +528,7 @@ void NeuralAmpModeler::_ApplyDSPStaging()
528528 mNAMPath .Set (" " );
529529 mShouldRemoveModel = false ;
530530 mCheckSampleRateWarning = true ;
531+ SetLatency (0 );
531532 }
532533 if (mShouldRemoveIR )
533534 {
@@ -543,6 +544,7 @@ void NeuralAmpModeler::_ApplyDSPStaging()
543544 mStagedModel = nullptr ;
544545 mNewModelLoadedInDSP = true ;
545546 mCheckSampleRateWarning = true ;
547+ SetLatency (mModel ->GetLatency ());
546548 }
547549 if (mStagedIR != nullptr )
548550 {
Original file line number Diff line number Diff line change @@ -157,6 +157,8 @@ class ResamplingNAM : public nam::DSP
157157 mFinalized = true ;
158158 };
159159
160+ int GetLatency () const { return mResampler .GetLatency (); };
161+
160162 void Reset (const double sampleRate, const int maxBlockSize)
161163 {
162164 mExpectedSampleRate = sampleRate;
You can’t perform that action at this time.
0 commit comments