Skip to content

CLAP wrapper calling reset in start_processing #246

@bashmd

Description

@bashmd

So i'm not super knowledgeable in how this is supposed to work, but running my CLAP plugin generated with nih-plug with element as host causes problems, because they seem to be calling start_processing, process and then end_processing for each block.

Reset in my case does what i think it's supposed to do, flush all buffers and state and start over. This means i'm permanently in an underrun situation and never get to process any samples, since i need a few for my plugin to work (noise cancellation with amd driver's onnx models).

I'm not exactly sure who's at fault here, i've tried to take a look at the CLAP repo and to understand the spec and the supposed flow, but that also didn't make things more clear. I have found no other CLAP plugin doing reset() on start_processing though.

The VST3 plugin generated with nih-plug on the other hand works just fine with element.

So the 3 options here are:

  1. i am doing something wrong and not using reset as intended
  2. nih-plug shouldn't be calling reset in start_processing
  3. element is misbehaving and shouldn't be calling start_processing / end_processing around each process call

I'm hoping you can shed some light on this as this currently prevents any use of nih-plug generated CLAP plugins with element.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions