NOOP, remove trailing tabs/whitespace.
[ardour.git] / libs / audiographer / audiographer / sndfile / sndfile.h
1 #ifndef AUDIOGRAPHER_SNDFILE_H
2 #define AUDIOGRAPHER_SNDFILE_H
3
4 #include "sndfile_writer.h"
5 #include "sndfile_reader.h"
6
7 namespace AudioGrapher
8 {
9
10 /** Reader/Writer for audio files using libsndfile.
11   * Only short, int and float are valid template parameters
12   */
13 template<typename T = DefaultSampleType>
14 class Sndfile : public SndfileWriter<T>, public SndfileReader<T>
15 {
16   public:
17
18         Sndfile (std::string const & filename, SndfileBase::Mode mode = SndfileBase::ReadWrite, int format = 0,
19                  ChannelCount channels = 0, framecnt_t samplerate = 0)
20           : SndfileHandle (filename, mode, format, channels, samplerate)
21         {}
22
23         Sndfile (Sndfile const & other) : SndfileHandle (other) {}
24         using SndfileHandle::operator=;
25
26 };
27
28 } // namespace
29
30 #endif // AUDIOGRAPHER_SNDFILE_H