1 #ifndef AUDIOGRAPHER_SOURCE_H
2 #define AUDIOGRAPHER_SOURCE_H
7 #include <boost/shared_ptr.hpp>
13 * This is a pure virtual interface for all data sources in AudioGrapher
19 virtual ~Source () { }
21 typedef boost::shared_ptr<Sink<T> > SinkPtr;
23 /// Adds an output to this source. All data generated is forwarded to \a output
24 virtual void add_output (SinkPtr output) = 0;
26 /// Removes all outputs added
27 virtual void clear_outputs () = 0;
29 /// Removes a specific output from this source
30 virtual void remove_output (SinkPtr output) = 0;
35 #endif //AUDIOGRAPHER_SOURCE_H