fix bypassing plugins with sidechain i/o
[ardour.git] / libs / ardour / ardour / spline.h
index de1ece6edb547709311112aff952934d74e3c7e5..475441fd44cd4d688def0a13ddc6673cef553bed 100644 (file)
@@ -28,10 +28,10 @@ extern "C" {
 typedef struct _spline Spline;
 typedef struct _spline_point SplinePoint;
 
-struct _spline_point
+struct LIBARDOUR_API _spline_point
 {
-    float x;
-    float y;
+       float x;
+       float y;
 };
 
 Spline *spline_new (void);
@@ -45,38 +45,38 @@ void    spline_fill (Spline *, float x0, float x1, float *vec, uint32_t veclen);
 float   spline_get_max_x (Spline *);
 float   spline_get_min_x (Spline *);
 
-struct _spline 
+struct LIBARDOUR_API _spline
 {
-    float        *deriv2;
-    float        *x;
-    float        *y;
-    float         max_x;
-    float         min_x;
-    SplinePoint  *points;
-    uint32_t npoints;
-    uint32_t space;
+       float        *deriv2;
+       float        *x;
+       float        *y;
+       float         max_x;
+       float         min_x;
+       SplinePoint  *points;
+       uint32_t      npoints;
+       uint32_t      space;
 
 #ifdef  __cplusplus
 
-    void set (uint32_t n, SplinePoint *points) {
-           spline_set (this, n, points);
-    }
-
-    void add (uint32_t n, SplinePoint *points) {
-           spline_add (this, n, points);
-    }
-
-    void solve () {
-           spline_solve (this);
-    }
-
-    float eval (float val) {
-           return spline_eval (this, val);
-    }
-    
-    void fill (float x0, float x1, float *vec, uint32_t veclen) {
-           spline_fill (this, x0, x1, vec, veclen);
-    }
+       void set (uint32_t n, SplinePoint *points) {
+               spline_set (this, n, points);
+       }
+
+       void add (uint32_t n, SplinePoint *points) {
+               spline_add (this, n, points);
+       }
+
+       void solve () {
+               spline_solve (this);
+       }
+
+       float eval (float val) {
+               return spline_eval (this, val);
+       }
+
+       void fill (float x0, float x1, float *vec, uint32_t veclen) {
+               spline_fill (this, x0, x1, vec, veclen);
+       }
 
 #endif /* __cplusplus */