[linux-audio-dev] ladspa diff

Taybin Rutkin taybin at earthlink.net
Mon Sep 8 21:43:01 UTC 2003


Here's a ladspa diff with LADSPA_HINT_MOMENTARY and
LADSPA_HINT_RANDOMISABLE.

Comments please?

Taybin
-------------- next part --------------
--- /usr/include/ladspa.h	2003-04-05 01:10:32.000000000 -0500
+++ ladspa-1.2.h	2003-09-08 21:24:05.000000000 -0400
@@ -22,9 +22,9 @@
 #ifndef LADSPA_INCLUDED
 #define LADSPA_INCLUDED
 
-#define LADSPA_VERSION "1.1"
+#define LADSPA_VERSION "1.2"
 #define LADSPA_VERSION_MAJOR 1
-#define LADSPA_VERSION_MINOR 1
+#define LADSPA_VERSION_MINOR 2
 
 #ifdef __cplusplus
 extern "C" {
@@ -223,6 +223,12 @@
    LADSPA_HINT_DEFAULT_1. */
 #define LADSPA_HINT_TOGGLED         0x4
 
+/* HINT LADSPA_HINT_MOMENTARY indicates that a control should behave like 
+   a momentary switch, eg. on for as long as the user holds down the key/mouse
+   button/whatever. Useful for reset or sync controls for example. Would be
+   useful in the DJ flanger. Only applies to TOGGLED controls. */
+#define LADSPA_HINT_MOMENTARY		0x404
+
 /* Hint LADSPA_HINT_SAMPLE_RATE indicates that any bounds specified
    should be interpreted as multiples of the sample rate. For
    instance, a frequency range from 0Hz to the Nyquist frequency (half
@@ -244,6 +250,14 @@
    3.1]. */
 #define LADSPA_HINT_INTEGER         0x20
 
+/* Hint LADSPA_HINT_RANDOMISIBLE indicates that its useful/meaningful 
+   to randomise the port if the user hits a button. This is useful for 
+   the steps of control sequencers, reverbs, and just about anything that is
+   complex. Allows you to specify which controls can be randomised without 
+   anything too supprising happening to the user (eg. sudden +100dB gain would 
+   be unpleasent). */
+#define LADSPA_HINT_RANDOMISABLE	0x800
+
 /* The various LADSPA_HINT_HAS_DEFAULT_* hints indicate a `normal'
    value for the port that is sensible as a default. For instance,
    this value is suitable for use as an initial value in a user


More information about the Linux-audio-dev mailing list