change name of a Session method to makes its intended function clear
[ardour.git] / libs / ardour / ardour / runtime_functions.h
index 147d697fca3beae6f3955f87db1e50ff8e8d85a0..45d6ec7015c3891cff46ba501c67a7e513df58f8 100644 (file)
 #ifndef __ardour_runtime_functions_h__
 #define __ardour_runtime_functions_h__
 
+#include "ardour/libardour_visibility.h"
 #include "ardour/types.h"
 
 namespace ARDOUR {
 
-       typedef float (*compute_peak_t)                 (const ARDOUR::Sample *, nframes_t, float);
-       typedef void  (*find_peaks_t)                   (const ARDOUR::Sample *, nframes_t, float *, float*);
-       typedef void  (*apply_gain_to_buffer_t)         (ARDOUR::Sample *, nframes_t, float);
-       typedef void  (*mix_buffers_with_gain_t)        (ARDOUR::Sample *, const ARDOUR::Sample *, nframes_t, float);
-       typedef void  (*mix_buffers_no_gain_t)          (ARDOUR::Sample *, const ARDOUR::Sample *, nframes_t);
-
-       extern compute_peak_t           compute_peak;
-       extern find_peaks_t             find_peaks;
-       extern apply_gain_to_buffer_t   apply_gain_to_buffer;
-       extern mix_buffers_with_gain_t  mix_buffers_with_gain;
-       extern mix_buffers_no_gain_t    mix_buffers_no_gain;
+       typedef float (*compute_peak_t)                     (const ARDOUR::Sample *, pframes_t, float);
+       typedef void  (*find_peaks_t)               (const ARDOUR::Sample *, pframes_t, float *, float*);
+       typedef void  (*apply_gain_to_buffer_t)         (ARDOUR::Sample *, pframes_t, float);
+       typedef void  (*mix_buffers_with_gain_t)        (ARDOUR::Sample *, const ARDOUR::Sample *, pframes_t, float);
+       typedef void  (*mix_buffers_no_gain_t)          (ARDOUR::Sample *, const ARDOUR::Sample *, pframes_t);
+       typedef void  (*copy_vector_t)                      (ARDOUR::Sample *, const ARDOUR::Sample *, pframes_t);
+
+       LIBARDOUR_API extern compute_peak_t             compute_peak;
+       LIBARDOUR_API extern find_peaks_t               find_peaks;
+       LIBARDOUR_API extern apply_gain_to_buffer_t     apply_gain_to_buffer;
+       LIBARDOUR_API extern mix_buffers_with_gain_t    mix_buffers_with_gain;
+       LIBARDOUR_API extern mix_buffers_no_gain_t      mix_buffers_no_gain;
+       LIBARDOUR_API extern copy_vector_t                      copy_vector;
 }
 
 #endif /* __ardour_runtime_functions_h__ */