X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Faudiographer%2Faudiographer%2Froutines.h;h=d78fa602b6954ac996f9de898816a1297cd64573;hb=b61146365f827fd04fe54a79e0c08926c9e2e9b5;hp=4ab3bc5fb52d63a27b0829ec04a762a774d625eb;hpb=b9185d2c07c77eccf3679ac99f6b69f8fdd79c48;p=ardour.git diff --git a/libs/audiographer/audiographer/routines.h b/libs/audiographer/audiographer/routines.h index 4ab3bc5fb5..d78fa602b6 100644 --- a/libs/audiographer/audiographer/routines.h +++ b/libs/audiographer/audiographer/routines.h @@ -15,13 +15,13 @@ 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 @@ -61,7 +61,7 @@ class LIBAUDIOGRAPHER_API Routines data[i] *= gain; } } - + static compute_peak_t _compute_peak; static apply_gain_to_buffer_t _apply_gain_to_buffer; };