1 #ifndef AUDIOGRAPHER_SNDFILE_H
2 #define AUDIOGRAPHER_SNDFILE_H
4 #include "sndfile_writer.h"
5 #include "sndfile_reader.h"
10 /** Reader/Writer for audio files using libsndfile.
11 * Only short, int and float are valid template parameters
13 template<typename T = DefaultSampleType>
14 class Sndfile : public SndfileWriter<T>, public SndfileReader<T>
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)
23 Sndfile (Sndfile const & other) : SndfileHandle (other) {}
24 using SndfileHandle::operator=;
30 #endif // AUDIOGRAPHER_SNDFILE_H