#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 class Sndfile : public SndfileWriter, public SndfileReader { public: Sndfile (std::string const & filename, SndfileBase::Mode mode = SndfileBase::ReadWrite, int format = 0, ChannelCount channels = 0, framecnt_t samplerate = 0) : SndfileHandle (filename, mode, format, channels, samplerate) {} Sndfile (Sndfile const & other) : SndfileHandle (other) {} using SndfileHandle::operator=; }; } // namespace #endif // AUDIOGRAPHER_SNDFILE_H