Commit 90fbb9aa authored by jhammen's avatar jhammen
Browse files

deprecate existing connect methods for connection operator

parent 370ef687
......@@ -171,6 +171,7 @@ class Sink {
}
}
void connect(audio::Source &source) {
fprintf(stderr, "connect method is deprecated: please use connection operator\n");
if (channels == 0) {
throw std::logic_error("cannot connect: this plugin has no audio inputs");
}
......@@ -186,6 +187,7 @@ class Sink {
}
}
void connect(audio::Connection *connection, uint32_t channel = 1) {
fprintf(stderr, "connect method is deprecated: please use connection operator\n");
if (channel == 0) {
throw std::logic_error("cannot connect: there is no channel zero");
}
......
......@@ -78,6 +78,7 @@ class Sink {
void schedule(Pattern &pattern, float measure) { bus[0].schedule(pattern, measure); }
void schedule(Message &mesg, float measure) { bus[0].schedule(mesg, measure); }
void connectMidi(Source &source) {
fprintf(stderr, "connectMidi method is deprecated: please use connection operator\n");
if (source.midiout()->channels() == 0) {
throw std::logic_error("cannot connect: the source has no MIDI outputs");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment