delete slave during Session::destroy
[ardour.git] / libs / audiographer / audiographer / routines.h
index b3b7f0921b02ae7264c0c4d18f5dc027a0c3f65d..d78fa602b6954ac996f9de898816a1297cd64573 100644 (file)
@@ -5,21 +5,23 @@
 
 #include <cmath>
 
+#include "audiographer/visibility.h"
+
 namespace AudioGrapher
 {
 
 /// Allows overriding some routines with more efficient ones.
-class Routines
+class LIBAUDIOGRAPHER_API Routines
 {
   public:
        typedef uint32_t uint_type;
-       
+
        typedef float (*compute_peak_t)          (float const *, uint_type, float);
        typedef void  (*apply_gain_to_buffer_t)  (float *, uint_type, float);
-       
+
        static void override_compute_peak         (compute_peak_t func)         { _compute_peak = func; }
        static void override_apply_gain_to_buffer (apply_gain_to_buffer_t func) { _apply_gain_to_buffer = func; }
-       
+
        /** Computes peak in float buffer
          * \n RT safe
          * \param data buffer from which the peak is computed
@@ -59,7 +61,7 @@ class Routines
                        data[i] *= gain;
                }
        }
-       
+
        static compute_peak_t          _compute_peak;
        static apply_gain_to_buffer_t  _apply_gain_to_buffer;
 };