@@ -324,8 +324,9 @@ void NeuralAmpModeler::ProcessBlock(iplug::sample** inputs, iplug::sample** outp
324324 sample** gateGainOutput =
325325 noiseGateActive ? mNoiseGateGain .Process (mOutputPointers , numChannelsInternal, numFrames) : mOutputPointers ;
326326
327- sample** toneStackOutPointers = (toneStackActive && mToneStack != nullptr ) ? mToneStack ->Process (gateGainOutput, numChannelsInternal, numFrames)
328- : gateGainOutput;
327+ sample** toneStackOutPointers = (toneStackActive && mToneStack != nullptr )
328+ ? mToneStack ->Process (gateGainOutput, numChannelsInternal, numFrames)
329+ : gateGainOutput;
329330
330331 sample** irPointers = toneStackOutPointers;
331332 if (mIR != nullptr && GetParam (kIRToggle )->Value ())
@@ -392,7 +393,7 @@ void NeuralAmpModeler::OnIdle()
392393bool NeuralAmpModeler::SerializeState (IByteChunk& chunk) const
393394{
394395 // If this isn't here when unserializing, then we know we're dealing with something before v0.8.0.
395- WDL_String header (" ###NeuralAmpModeler###" ); // Don't change this!
396+ WDL_String header (" ###NeuralAmpModeler###" ); // Don't change this!
396397 chunk.PutStr (header.Get ());
397398 // Plugin version, so we can load legacy serialized states in the future!
398399 WDL_String version (PLUG_VERSION_STR);
@@ -409,7 +410,7 @@ int NeuralAmpModeler::UnserializeState(const IByteChunk& chunk, int startPos)
409410 WDL_String header;
410411 startPos = chunk.GetStr (header, startPos);
411412 // TODO: Handle legacy plugin serialized states.
412- // if strncmp (header.Get(), "###NeuralAmpModeler###")
413+ // if strncmp (header.Get(), "###NeuralAmpModeler###")
413414 // {
414415 // return UnserializeStateLegacy(header, startPos); // (We'll assume 0.7.9).
415416 // }
@@ -456,19 +457,13 @@ void NeuralAmpModeler::OnUIOpen()
456457
457458void NeuralAmpModeler::OnParamChange (int paramIdx)
458459{
459- switch (paramIdx)
460- {
461- case kToneBass :
462- mToneStack ->SetParam (" bass" , GetParam (paramIdx)->Value ());
463- break ;
464- case kToneMid :
465- mToneStack ->SetParam (" middle" , GetParam (paramIdx)->Value ());
466- break ;
467- case kToneTreble :
468- mToneStack ->SetParam (" treble" , GetParam (paramIdx)->Value ());
469- break ;
460+ switch (paramIdx)
461+ {
462+ case kToneBass : mToneStack ->SetParam (" bass" , GetParam (paramIdx)->Value ()); break ;
463+ case kToneMid : mToneStack ->SetParam (" middle" , GetParam (paramIdx)->Value ()); break ;
464+ case kToneTreble : mToneStack ->SetParam (" treble" , GetParam (paramIdx)->Value ()); break ;
470465 default : break ;
471- }
466+ }
472467}
473468
474469void NeuralAmpModeler::OnParamChangeUI (int paramIdx, EParamSource source)
0 commit comments