Browse Source

Use lv2_log_trace during run, so we are more rt-safe

Signed-off-by: falkTX <falktx@falktx.com>
master
falkTX 1 year ago
parent
commit
574390bb24
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      lv2-state-test.c

+ 4
- 4
lv2-state-test.c View File

@@ -234,25 +234,25 @@ static void run(LV2_Handle instance, uint32_t sample_count)
if (instancePtr->deactivated)
{
instancePtr->deactivated = false;
lv2_log_note(&instancePtr->logger, "plugin was deactivated\n");
lv2_log_trace(&instancePtr->logger, "plugin was deactivated\n");
}

if (instancePtr->activated)
{
instancePtr->activated = false;
lv2_log_note(&instancePtr->logger, "plugin was activated\n");
lv2_log_trace(&instancePtr->logger, "plugin was activated\n");
}

if (instancePtr->restored)
{
instancePtr->restored = false;
lv2_log_note(&instancePtr->logger, "plugin state was restored\n");
lv2_log_trace(&instancePtr->logger, "plugin state was restored\n");
}

if (instancePtr->saved)
{
instancePtr->saved = false;
lv2_log_note(&instancePtr->logger, "plugin state was saved\n");
lv2_log_trace(&instancePtr->logger, "plugin state was saved\n");
}

return;


Loading…
Cancel
Save