I want to initialise a the EQ class in FilePlayerGui? In the header file for FilaPlayerGui I have this line in the private section
EQ& eq;
This is the FilePlayerGui constructor
FilePlayerGui::FilePlayerGui (FilePlayer& filePlayer_) : filePlayer (filePlayer_), waveform(2), eq(eq)
This is the EQ constructor
EQ::EQ() : filter{44100, 44100, 44100}
{
filter[0].FilterConfig(kLPF, 250, 0);
filter[1].FilterConfig(kBPF, 1125, 1750);
filter[2].FilterConfig(kHPF, 2000, 0);
for(int counter = 0; counter < 3; counter++)
{
freqGain[counter] = 0;
}
}
When I try to run my program with the code as it is above I get an error that says "Juce Message Thread (1): EXC_BAD_ACCESS (code=1, address=0x5900)"
Sorry if this is a simple solution or I'm doing something completely wrong, not good with initialising things