Ardour
9.0-pre0-582-g084a23a80d
|
Allows overriding some routines with more efficient ones. More...
#include <routines.h>
Public Types | |
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 Public Member Functions | |
static void | override_compute_peak (compute_peak_t func) |
static void | override_apply_gain_to_buffer (apply_gain_to_buffer_t func) |
static float | compute_peak (float const *data, uint_type samples, float current_peak) |
static void | apply_gain_to_buffer (float *data, uint_type samples, float gain) |
Static Private Member Functions | |
static float | default_compute_peak (float const *data, uint_type samples, float current_peak) |
static void | default_apply_gain_to_buffer (float *data, uint_type samples, float gain) |
Static Private Attributes | |
static compute_peak_t | _compute_peak |
static apply_gain_to_buffer_t | _apply_gain_to_buffer |
Allows overriding some routines with more efficient ones.
Definition at line 14 of file routines.h.
typedef void(* AudioGrapher::Routines::apply_gain_to_buffer_t) (float *, uint_type, float) |
Definition at line 20 of file routines.h.
typedef float(* AudioGrapher::Routines::compute_peak_t) (float const *, uint_type, float) |
Definition at line 19 of file routines.h.
typedef uint32_t AudioGrapher::Routines::uint_type |
Definition at line 17 of file routines.h.
|
inlinestatic |
Applies constant gain to buffer
RT safe
data | data to which the gain is applied |
samples | length of data |
gain | gain that is applied |
Definition at line 43 of file routines.h.
|
inlinestatic |
Computes peak in float buffer
RT safe
data | buffer from which the peak is computed |
samples | length of the portion of buffer that is checked |
current_peak | current peak of buffer, if calculated in several passes |
Definition at line 32 of file routines.h.
|
inlinestaticprivate |
Definition at line 58 of file routines.h.
|
inlinestaticprivate |
Definition at line 49 of file routines.h.
|
inlinestatic |
Definition at line 23 of file routines.h.
|
inlinestatic |
Definition at line 22 of file routines.h.
|
staticprivate |
Definition at line 66 of file routines.h.
|
staticprivate |
Definition at line 65 of file routines.h.