[linux-audio-dev] +well-known-ports -Latency (ladspa.h.diff)

Paul Davis paul at linuxaudiosystems.com
Wed Mar 10 15:00:07 UTC 2004


+   LADSPA_PORT_CONTROL). The value the plugin writes to this port is
+   the delay, in 1 / SampleRate time units, the plugin imposes on the signals
+   it processes. Plugin authors should take note that hosts will most likely
+   evaluate this information only once during the lifecycle of a plugin
+   instance. Host authors must assume that the port value will only be valid
+   after the first call to run() or run_adding(). */

this is not an accurate description of the purpose of the port. 

     Plugin authors should assume that hosts that care about plugin
     latency will read the latency value as often as they deem
     necessary. However, host authors should assume that the port
     value is only valid after a legal call to run() or run_adding()
     (i.e. the plugin is active when run() or run_adding() is
     called). 

the latency port was intended to allow sequencer hosts like ardour to
do automatic latency compensation. it was not intended as a static
piece of information.

--p








More information about the Linux-audio-dev mailing list