diff options
Diffstat (limited to 'libs/audiographer/audiographer/identity_vertex.h')
-rw-r--r-- | libs/audiographer/audiographer/identity_vertex.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libs/audiographer/audiographer/identity_vertex.h b/libs/audiographer/audiographer/identity_vertex.h new file mode 100644 index 0000000000..b53bd96851 --- /dev/null +++ b/libs/audiographer/audiographer/identity_vertex.h @@ -0,0 +1,21 @@ +#ifndef AUDIOGRAPHER_IDENTITY_VERTEX_H +#define AUDIOGRAPHER_IDENTITY_VERTEX_H + +#include "listed_source.h" +#include "sink.h" + +namespace AudioGrapher +{ + +template<typename T> +class IdentityVertex : public ListedSource<T>, Sink<T> +{ + public: + void process (ProcessContext<T> const & c) { ListedSource<T>::output(c); } + void process (ProcessContext<T> & c) { ListedSource<T>::output(c); } +}; + + +} // namespace + +#endif // AUDIOGRAPHER_IDENTITY_VERTEX_H |