Clean up Region interface, remove Readable stub kludge.
[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 nframes_t read (Sample*, sframes_t pos, nframes_t cnt, int channel) const = 0;
14         virtual sframes_t readable_length() const = 0;
15         virtual uint32_t  n_channels () const = 0;
16 };
17
18 }
19
20 #endif /* __ardour_readable_h__ */