summaryrefslogtreecommitdiff
path: root/libs/audiographer/audiographer/sndfile/sndfile_base.h
blob: 02d5a7f6ea17f76f5751c0c5eb09abc764f61a0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef AUDIOGRAPHER_SNDFILE_BASE_H
#define AUDIOGRAPHER_SNDFILE_BASE_H

// We need to use our modified version until
// the fd patch is accepted upstream
#include "private/sndfile.hh"

namespace AudioGrapher
{

/// Base class for all classes using libsndfile
class SndfileBase : public virtual AudioGrapher::SndfileHandle
{
  public:
	enum Mode
	{
		Read = SFM_READ,
		Write = SFM_WRITE,
		ReadWrite = SFM_RDWR
	};
	
  protected:
	SndfileBase () {}
};

} // namespace

#endif // AUDIOGRAPHER_SNDFILE_BASE_H