Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid initialization of reference #1

Closed
UnkindPartition opened this issue Sep 1, 2017 · 1 comment
Closed

invalid initialization of reference #1

UnkindPartition opened this issue Sep 1, 2017 · 1 comment

Comments

@UnkindPartition
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants