klangfreund / LUFSMeter

An implementation of the loudness measurement algorithm ITU-R BS.1770
209 stars 30 forks source link

invalid initialization of reference #1

Closed UnkindPartition closed 7 years ago

UnkindPartition commented 7 years ago

Hi,

I am getting the following error while trying to compile the plugin:

Compiling LUFSMeterAudioProcessor.cpp
../../../LUFSMeter/Source/LUFSMeterAudioProcessor.cpp: In member function ‘const juce::Array<float>& LUFSMeterAudioProcessor::getMomentaryLoudnessForIndividualChannels()’:
../../../LUFSMeter/Source/LUFSMeterAudioProcessor.cpp:295:73: error: invalid initialization of reference of type ‘const juce::Array<float>&’ from expression of type ‘std::vector<float>’
     return ebu128LoudnessMeter.getMomentaryLoudnessForIndividualChannels();
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
Makefile:178: recipe for target 'build/intermediate/Debug/LUFSMeterAudioProcessor_483d57b.o' failed
% c++ --version
c++ (GCC) 6.4.1 20170727 (Red Hat 6.4.1-1)
% lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: Fedora
Description:    Fedora release 25 (Twenty Five)
Release:    25
Codename:   TwentyFive
% git describe --always
f80b6de
klangfreund commented 7 years ago

Hi feuerbach,

I updated some files to cope with the change from Array to vector in the measurement code. See commit 1851101. But because I don't have the resources to maintain this open source LUFS Meter code anymore, I just restructured the project to only show the core measurement algorithm implementation. I recommend to go back to a commit about 3 years ago, when I actively developed this as open source, to get a version that compiles out of the box.