From bb9cc45cd22af67ac275a5e73accbe14fee664d8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 14 Oct 2009 16:10:01 +0000 Subject: 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 --- libs/ardour/ardour/graph.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'libs/ardour/ardour/graph.h') 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 { public: GraphSinkVertex () {} virtual ~GraphSinkVertex () {} - + void pipe_to (boost::shared_ptr > 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 { piped_to->set_end_of_input (state); GraphSink::end_of_input = state; } - + protected: boost::shared_ptr > piped_to; - + /* process must process data, use piped_to->write to write the data and return number of frames written */ -- cgit v1.2.3