31class MeterProcessor :
public QObject
36 Q_PROPERTY (
int channel READ channel WRITE setChannel)
38 int sampleRate READ sampleRate WRITE setSampleRate NOTIFY sampleRateChanged
42 portObservationManager WRITE setPortObservationManager REQUIRED)
44 float currentAmplitude READ currentAmplitude NOTIFY currentAmplitudeChanged)
45 Q_PROPERTY (
float peakAmplitude READ peakAmplitude NOTIFY peakAmplitudeChanged)
86 void setChannel (
int channel);
88 int sampleRate ()
const;
89 void setSampleRate (
int rate);
90 Q_SIGNAL
void sampleRateChanged ();
97 Q_SIGNAL
void algorithmChanged ();
99 float currentAmplitude ()
const;
100 Q_SIGNAL
void currentAmplitudeChanged (
float value);
102 float peakAmplitude ()
const;
103 Q_SIGNAL
void peakAmplitudeChanged (
float value);
105 Q_INVOKABLE
float toDBFS (
float amp)
const;
106 Q_INVOKABLE
float toFader (
float amp)
const;
110 void try_create_token ();
113 std::unique_ptr<Impl> impl_;