summaryrefslogtreecommitdiff
path: root/libs/audiographer/audiographer/sndfile/sndfile.h
diff options
context:
space:
mode:
authorSakari Bergen <sakari.bergen@beatwaves.net>2010-03-15 19:11:48 +0000
committerSakari Bergen <sakari.bergen@beatwaves.net>2010-03-15 19:11:48 +0000
commit830911f6f9451d83a58043b3f9084d3caa164b7b (patch)
treef4ca4e3d86b51d66e7cecfb6b370cc4eb553e2d7 /libs/audiographer/audiographer/sndfile/sndfile.h
parent44f4b84551d36ef4103d09452768f5ba53e0002c (diff)
Fix export, which has been broken since the boost::signals2 changes. Also update Audiographer, bacause of its incomplete sndfile handling. Audiographer is equal to revision 74
git-svn-id: svn://localhost/ardour2/branches/3.0@6760 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/audiographer/audiographer/sndfile/sndfile.h')
-rw-r--r--libs/audiographer/audiographer/sndfile/sndfile.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/libs/audiographer/audiographer/sndfile/sndfile.h b/libs/audiographer/audiographer/sndfile/sndfile.h
new file mode 100644
index 0000000000..4db2298a90
--- /dev/null
+++ b/libs/audiographer/audiographer/sndfile/sndfile.h
@@ -0,0 +1,30 @@
+#ifndef AUDIOGRAPHER_SNDFILE_H
+#define AUDIOGRAPHER_SNDFILE_H
+
+#include "sndfile_writer.h"
+#include "sndfile_reader.h"
+
+namespace AudioGrapher
+{
+
+/** Reader/Writer for audio files using libsndfile.
+ * Only short, int and float are valid template parameters
+ */
+template<typename T = DefaultSampleType>
+class Sndfile : public SndfileWriter<T>, public SndfileReader<T>
+{
+ public:
+
+ Sndfile (std::string const & filename, SndfileBase::Mode mode = SndfileBase::ReadWrite, int format = 0,
+ ChannelCount channels = 0, nframes_t samplerate = 0)
+ : SndfileHandle (filename, mode, format, channels, samplerate)
+ {}
+
+ Sndfile (Sndfile const & other) : SndfileHandle (other) {}
+ using SndfileHandle::operator=;
+
+};
+
+} // namespace
+
+#endif // AUDIOGRAPHER_SNDFILE_H \ No newline at end of file