CLAP plugin development

Forums

I'm building a CLAP plugin and I'm noticing some strange inconsistencies, and I'm not sure if I'm doing something wrong, or if I've found a bug in qtractor, or if the CLAP spec has changed and the "new" way of doing things isn't supported yet.

According to the CLAP documentation, host_params->rescan is supposed to be called on the main thread, and host->request_callback is how you're supposed to request an opportunity to run code on the main thread. Sometimes this works as intended, but it seems that more often than not I never receive the callback.

But then I accidentally called rescan on the audio thread, and it works, and works consistently, even though I'm not supposed to do that.

On the other hand, neither technique seems to work when I try to use request_restart.

Can I get some advice on the best way to approach this in a way that should theoretically not blow up in other hosts?

(I built from source using the tag qtractor_0_9_34.)

Permalink

hi,
you might have a point there but the most of what you ask is not implemented in qtractor as clap host.

for example, although host_params::rescan() is partially implemented host::request_callback() is not, there are just stubs that do nothing at all.

sorry.

Permalink

Ah. That explains it. Thanks for the information.

Taking a look at the underlying code I think I should be able to implement plugin_request_callback easily enough. I don't see any contribution guidelines on the project website; would you prefer a MR on SF?

Add new comment

The content of this field is kept private and will not be shown publicly.

Markdown

  • Parses markdown and converts it to HTML.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id> <img src alt height width> <strike>
  • Lines and paragraphs break automatically.

Filtered HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <b> <i> <pre> <img src alt height width> <strike>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
File attachments
Unlimited number of files can be uploaded to this field.
2 MB limit.
Allowed types: jpg jpeg gif png txt doc docx xls xlsx pdf ppt pps odt ods odp zip gz bz2 xz patch diff wav ogg flac ogv mp4 qtz.