summaryrefslogtreecommitdiff
path: root/src/lib/audio_delay.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-09-18 22:33:20 +0100
committerCarl Hetherington <cth@carlh.net>2015-09-18 22:33:20 +0100
commit0dfd150ac546eb42067cb51b6d4386fadc24afab (patch)
tree94a8f04112a272996254940c9eebe8c7c260cd65 /src/lib/audio_delay.h
parent1dab4d3d084eda74612a3ebf0688ebc6fda7e78b (diff)
Add UpmixerB.
Diffstat (limited to 'src/lib/audio_delay.h')
-rw-r--r--src/lib/audio_delay.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/lib/audio_delay.h b/src/lib/audio_delay.h
new file mode 100644
index 000000000..0072915e2
--- /dev/null
+++ b/src/lib/audio_delay.h
@@ -0,0 +1,34 @@
+/*
+ Copyright (C) 2015 Carl Hetherington <cth@carlh.net>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#include <boost/shared_ptr.hpp>
+
+class AudioBuffers;
+
+class AudioDelay
+{
+public:
+ AudioDelay (int samples);
+ boost::shared_ptr<AudioBuffers> run (boost::shared_ptr<const AudioBuffers> in);
+ void flush ();
+
+private:
+ boost::shared_ptr<AudioBuffers> _tail;
+ int _samples;
+};