diff --git a/src/sink.cpp b/src/sink.cpp --- a/src/sink.cpp +++ b/src/sink.cpp @@ -50,3 +50,14 @@ void Sink::setNumChannels(unsigned nc, b sink->setNumChannels(nc, x); } } + +void Sink::setSource(const Source* s) +{ + Q_ASSERT((source == NULL) != (s == NULL)); + source = s; +} + +const Source* Sink::connectedSource() const +{ + return source; +}