Hi everybody!
I am new to C++ and Juce but I need to use it for a Uni module. I have searched for similar errors/issues by other users but couldn't find an answer that may be able to fix my problem.
Long story short: I am trying to build a simple compressor but I get the forementioned error: 2259: cannot instantiate abstract class.
I am trying to build it with Visual Studio 2012 which points at the bolded lines, does anyone have any ideas as to what is causing the error?
I apologize if it sounds like a noob question but I really like Juce and would like to experiment with it but can't get past this...
Best,
M.
// This creates new instances of the plugin..
AudioProcessor* JUCE_CALLTYPE createPluginFilter()
{
return new CompressorAudioProcessor();
}
int CompressorAudioProcessor::round(float inn)
{
if (inn > 0) return (int) (inn + 0.5);
else return (int) (inn - 0.5);
}
const String CompressorAudioProcessor::getName() const
{
return JucePlugin_Name;
}
int CompressorAudioProcessor::getNumParameters()
{
return 0;
}
float CompressorAudioProcessor::getParameter (int index)
{
return 0.0f;
}
void CompressorAudioProcessor::setParameter (int index, float newValue)
{
}
const String CompressorAudioProcessor::getParameterName (int index)
{
return String::empty;
}
const String CompressorAudioProcessor::getParameterText (int index)
{
return String::empty;
}
const String CompressorAudioProcessor::getInputChannelName (int channelIndex) const
{
return String (channelIndex + 1);
}
const String CompressorAudioProcessor::getOutputChannelName (int channelIndex) const
{
return String (channelIndex + 1);
}
bool CompressorAudioProcessor::isInputChannelStereoPair (int index) const
{
return true;
}
bool CompressorAudioProcessor::isOutputChannelStereoPair (int index) const
{
return true;
}
bool CompressorAudioProcessor::acceptsMidi() const
{
#if JucePlugin_WantsMidiInput
return true;
#else
return false;
#endif
}
bool CompressorAudioProcessor::producesMidi() const
{
#if JucePlugin_ProducesMidiOutput
return true;
#else
return false;
#endif
}
int CompressorAudioProcessor::getNumPrograms()
{
return 0;
}
int CompressorAudioProcessor::getCurrentProgram()
{
return 0;
}
void CompressorAudioProcessor::setCurrentProgram (int index)
{
}
const String CompressorAudioProcessor::getProgramName (int index)
{
return String::empty;
}
void CompressorAudioProcessor::changeProgramName (int index, const String& newName)
{
}