mirror of
https://github.com/mikeoliphant/neural-amp-modeler-lv2.git
synced 2026-05-10 04:30:14 +02:00
lv2 error on failed model load
This commit is contained in:
+4
-4
@@ -64,12 +64,11 @@ namespace NAM {
|
|||||||
switch (*((const uint32_t*)data))
|
switch (*((const uint32_t*)data))
|
||||||
{
|
{
|
||||||
case kWorkTypeLoad:
|
case kWorkTypeLoad:
|
||||||
|
auto msg = reinterpret_cast<const LV2LoadModelMsg*>(data);
|
||||||
|
auto nam = static_cast<NAM::Plugin*>(instance);
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
auto msg = reinterpret_cast<const LV2LoadModelMsg*>(data);
|
|
||||||
|
|
||||||
auto nam = static_cast<NAM::Plugin*>(instance);
|
|
||||||
|
|
||||||
// If we had a previous model, delete it
|
// If we had a previous model, delete it
|
||||||
if (nam->deleteModel)
|
if (nam->deleteModel)
|
||||||
{
|
{
|
||||||
@@ -88,6 +87,7 @@ namespace NAM {
|
|||||||
}
|
}
|
||||||
catch (std::exception& e)
|
catch (std::exception& e)
|
||||||
{
|
{
|
||||||
|
lv2_log_error(&nam->logger, "Unable to load model from: '%s'\n", msg->path);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user