finalize PROGRAM_NAME change for ardour3
[ardour.git] / libs / audiographer / audiographer / sndfile_base.h
1 #ifndef AUDIOGRAPHER_SNDFILE_BASE_H
2 #define AUDIOGRAPHER_SNDFILE_BASE_H
3
4 #include <string>
5 #include <sndfile.h>
6 #include <sigc++/signal.h>
7
8 #include "types.h"
9 #include "debuggable.h"
10
11 namespace AudioGrapher {
12
13 /// Common interface for templated libsndfile readers/writers
14 class SndfileBase : public Debuggable<>
15 {
16   public:
17         
18         sigc::signal<void, std::string> FileWritten;
19
20   protected:
21         SndfileBase (ChannelCount channels, nframes_t samplerate, int format, std::string const & path);
22         virtual ~SndfileBase ();
23
24         std::string    path;
25         SF_INFO        sf_info;
26         SNDFILE *      sndfile;
27 };
28
29 } // namespace
30
31 #endif // AUDIOGRAPHER_SNDFILE_BASE_H