summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/graph.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-10-14 16:10:01 +0000
committerDavid Robillard <d@drobilla.net>2009-10-14 16:10:01 +0000
commitbb9cc45cd22af67ac275a5e73accbe14fee664d8 (patch)
treee52977d3eae6ff07b856088041a080a2fa3e5b79 /libs/ardour/ardour/graph.h
parent8c4ce1e2ce35571aed5a686671431fdfffae7f8c (diff)
Strip trailing whitespace and fix other whitespace errors (e.g. space/tab mixing). Whitespace changes only.
Vimmers, try let c_space_errors = 1 in your .vimrc to highlight this kind of stuff in red. I don't know the emacs equivalent... git-svn-id: svn://localhost/ardour2/branches/3.0@5773 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/graph.h')
-rw-r--r--libs/ardour/ardour/graph.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/libs/ardour/ardour/graph.h b/libs/ardour/ardour/graph.h
index c0e29b6735..5d6919f56e 100644
--- a/libs/ardour/ardour/graph.h
+++ b/libs/ardour/ardour/graph.h
@@ -34,10 +34,10 @@ class GraphSink {
public:
GraphSink () : end_of_input (false) {}
virtual ~GraphSink () { end_of_input = false; }
-
+
// writes data and return number of frames written
virtual nframes_t write (T * data, nframes_t frames) = 0;
-
+
// Notifies end of input. All left over data must be written at this stage
virtual void set_end_of_input (bool state = true)
{
@@ -54,7 +54,7 @@ class GraphSource {
public:
GraphSource () {}
virtual ~GraphSource () {}
-
+
virtual nframes_t read (T * data, nframes_t frames) = 0;
};
@@ -64,19 +64,19 @@ class GraphSinkVertex : public GraphSink<TIn> {
public:
GraphSinkVertex () {}
virtual ~GraphSinkVertex () {}
-
+
void pipe_to (boost::shared_ptr<GraphSink<TOut> > dest) {
piped_to = dest;
}
-
+
nframes_t write (TIn * data, nframes_t frames)
{
if (!piped_to) {
return -1;
}
return process (data, frames);
- }
-
+ }
+
virtual void set_end_of_input (bool state = true)
{
if (!piped_to) {
@@ -85,10 +85,10 @@ class GraphSinkVertex : public GraphSink<TIn> {
piped_to->set_end_of_input (state);
GraphSink<TIn>::end_of_input = state;
}
-
+
protected:
boost::shared_ptr<GraphSink<TOut> > piped_to;
-
+
/* process must process data,
use piped_to->write to write the data
and return number of frames written */