Ardour  9.0-pre0-582-g084a23a80d
sndfile.h
Go to the documentation of this file.
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 
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,
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
int samplerate(void) const
Definition: sndfile.hh:103
int channels(void) const
Definition: sndfile.hh:102
int format(void) const
Definition: sndfile.hh:101
Sndfile(Sndfile const &other)
Definition: sndfile.h:23
Sndfile(std::string const &filename, SndfileBase::Mode mode=SndfileBase::ReadWrite, int format=0, ChannelCount channels=0, samplecnt_t samplerate=0)
Definition: sndfile.h:18