summaryrefslogtreecommitdiff
path: root/libs/audiographer/audiographer/utils/identity_vertex.h
blob: 1d7ed806978387de0a0410e2795fb82a06225c58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef AUDIOGRAPHER_IDENTITY_VERTEX_H
#define AUDIOGRAPHER_IDENTITY_VERTEX_H

#include "audiographer/visibility.h"
#include "audiographer/types.h"
#include "audiographer/utils/listed_source.h"
#include "audiographer/sink.h"

namespace AudioGrapher
{

/// Outputs its input directly to a number of Sinks
template<typename T = DefaultSampleType>
class LIBAUDIOGRAPHER_API 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