10#ifndef __AUDIO_METER_H__
11#define __AUDIO_METER_H__
15#include "gtk_wrapper.h"
33 METER_ALGORITHM_DIGITAL_PEAK,
82 gint64 last_midi_trigger_time;
87meter_new_for_port (
Port * port);
99meter_free (
Meter * self);
float prev_max
Previous max, used when holding the max value.
KMeterDsp * kmeter_processor
K RMS processor, if K meter.
void meter_get_value(Meter *self, AudioValueFormat format, float *val, float *max)
Get the current meter value.
float true_peak
Current true peak.
Port * port
Port associated with this meter.
TruePeakDsp * true_peak_processor
True peak processor.
float last_amp
Last meter value (in amplitude), used to show a falloff and avoid sudden dips.
MeterAlgorithm algorithm
Algorithm to use.
gint64 last_draw_time
Time the last val was taken at (last draw time).
@ METER_ALGORITHM_AUTO
Use default algorithm for the port.
@ METER_ALGORITHM_TRUE_PEAK
A Meter used by a single GUI element.
Must ONLY be created via port_new()