add braces and warning for unlikely error
[ardour.git] / libs / audiographer / audiographer / sndfile / sndfile_base.h
1 #ifndef AUDIOGRAPHER_SNDFILE_BASE_H
2 #define AUDIOGRAPHER_SNDFILE_BASE_H
3
4 // We need to use our modified version until
5 // the fd patch is accepted upstream
6 #include "private/sndfile.hh"
7
8 namespace AudioGrapher
9 {
10
11 /// Base class for all classes using libsndfile
12 class SndfileBase : public virtual AudioGrapher::SndfileHandle
13 {
14   public:
15         enum Mode
16         {
17                 Read = SFM_READ,
18                 Write = SFM_WRITE,
19                 ReadWrite = SFM_RDWR
20         };
21
22   protected:
23         SndfileBase () {}
24 };
25
26 } // namespace
27
28 #endif // AUDIOGRAPHER_SNDFILE_BASE_H