Re: [linux-audio-dev] LADSPA and plugin sample rate

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] LADSPA and plugin sample rate
From: Paul Barton-Davis (pbd_AT_Op.Net)
Date: Mon Dec 11 2000 - 02:54:03 EET


>Maybe I'm being stupid, but frankly I don't understand what this discussion is
> about. Can someone clarify?

The current spec says:

----------------------------------------------------------------------
/* Hint LADSPA_HINT_BOUNDED_BELOW indicates that the LowerBound field
   of the LADSPA_PortRangeHint should be considered meaningful. The
   value in this field should be considered the (inclusive) lower
   bound of the valid range. If LADSPA_HINT_SAMPLE_RATE is also
   specified then the value of LowerBound should be multiplied by the
   sample rate. */
#define LADSPA_HINT_BOUNDED_BELOW 0x1
----------------------------------------------------------------------

So, whose job is it to do the multiplication ? So far, existing
plugins (i.e. steve's; i haven't looked through the CMT set to see if
any set HINT_SAMPLE_RATE) assume that its the job of the host.

My request is that we make it explicit that its the plugin's job to do
this. So to take a concrete example: Steve's new decimator has a
sample rate parameter, which in the code is hinted to lie between 0
and 1.0. But the plugin never scales that by the SR, it assumes that
the host will do it.

The problem is that the part of the host that takes care of this (the
GUI, for example) may not (and in my case, does not) have any easy way
to know what the sample rate is. The plugin, OTOH, does.

--p


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Mon Dec 11 2000 - 03:27:18 EET