Less weak plugin preset system (maybe AU preset stuff can use the 'normal' thing...
[ardour.git] / libs / ardour / ardour / readable.h
1 #ifndef __ardour_readable_h__
2 #define __ardour_readable_h__
3
4 #include <ardour/types.h>
5
6 namespace ARDOUR {
7
8 class Readable {
9   public:
10         Readable () {}
11         virtual ~Readable() {}
12
13         virtual nframes64_t read (Sample*, nframes64_t pos, nframes64_t cnt, int channel) const = 0;
14         virtual nframes64_t readable_length() const = 0;
15         virtual uint32_t    n_channels () const = 0;
16 };
17
18 }
19
20 #endif /* __ardour_readable_h__ */