rendered paste bodyConstructor:
Oscillator(RtWvOut *dac_t, std::vector <stk_note> &point, int wave);
Oscillator::Oscillator(RtWvOut *dac_t, std::vector <stk_note> &point, int wave)
{
dac = dac_t;
//all_notes = note_vector;
}
int main()
{
...
vector <stk_note> noten;
noten.push_back(stk_note());
Oscillator osc(dac,noten, 0);
...
}
compiler error:
test.cpp:52: error: no matching function for call to Oscillator::Oscillator(RtWvOut*&, std::vector<stk_note, std::allocator<stk_note> >&, int)
Oscillator.h:26: note: candidates are: Oscillator::Oscillator(RtWvOut*, std::vector<Oscillator::stk_note, std::allocator<Oscillator::stk_note> >&, int)
Oscillator.h:25: note: Oscillator::Oscillator()
Oscillator.h:12: note: Oscillator::Oscillator(const Oscillator&)
make: *** [tester] Error 1