mirror of
https://github.com/mikeoliphant/neural-amp-modeler-lv2.git
synced 2026-05-08 12:30:12 +02:00
CMake options for forcing use of NAM Core for LSTM or WaveNet
This commit is contained in:
@@ -12,6 +12,14 @@ namespace NAM {
|
||||
{
|
||||
// prevent allocations on the audio thread
|
||||
currentModelPath.reserve(MAX_FILE_NAME+1);
|
||||
|
||||
#ifdef LSTM_PREFER_NAM // Use NAM Core for NAM LSTM models
|
||||
NeuralAudio::NeuralModel::SetLSTMLoadMode(NeuralAudio::PreferNAMCore);
|
||||
#endif
|
||||
|
||||
#ifdef WAVENET_PREFER_NAM // Use NAM Core for NAM WaveNet models
|
||||
NeuralAudio::NeuralModel::SetWaveNetLoadMode(NeuralAudio::PreferNAMCore);
|
||||
#endif
|
||||
}
|
||||
|
||||
Plugin::~Plugin()
|
||||
|
||||
Reference in New Issue
Block a user