fix copy constructor.

This commit is contained in:
Robin Gareus
2016-02-12 13:56:26 +01:00
parent 1d1eae4017
commit 258c816554

View File

@@ -54,8 +54,9 @@ namespace ARDOUR {
, have_loudness (other.have_loudness)
, have_dbtp (other.have_dbtp)
, n_channels (other.n_channels)
, truepeakpos (other.truepeakpos)
{
truepeakpos[0] = other.truepeakpos[0];
truepeakpos[1] = other.truepeakpos[1];
memcpy (peaks, other.peaks, sizeof(peaks));
memcpy (spectrum, other.spectrum, sizeof(spectrum));
memcpy (loudness_hist, other.loudness_hist, sizeof(loudness_hist));