Remove peak value references from Mixer::getPeakValues

Adjust Mixer::getPeakValues so client do not have to allocate the
variables that will store the peak values.

Adjust both existing clients: FxMixer and VisualizationWidget.
This commit is contained in:
Michael Gregorius
2018-07-30 20:05:48 +02:00
parent c44bc4eb7f
commit 8d00e90322
4 changed files with 17 additions and 13 deletions

View File

@@ -273,7 +273,13 @@ public:
}
void getPeakValues( sampleFrame * _ab, const f_cnt_t _frames, float & peakLeft, float & peakRight ) const;
struct StereoSample
{
StereoSample(sample_t _left, sample_t _right) : left(_left), right(_right) {}
sample_t left;
sample_t right;
};
StereoSample getPeakValues(sampleFrame * _ab, const f_cnt_t _frames) const;
bool criticalXRuns() const;