summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/readable.h
blob: d927cbe4af6e17823ff4ea00b9e0076b22ea44d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __ardour_readable_h__
#define __ardour_readable_h__

#include "ardour/types.h"

namespace ARDOUR {

class Readable {
  public:
	Readable () {}
	virtual ~Readable() {}

	virtual framecnt_t read (Sample*, framepos_t pos, framecnt_t cnt, int channel) const = 0;
	virtual framecnt_t readable_length() const = 0;
	virtual uint32_t  n_channels () const = 0;
};

}

#endif /* __ardour_readable_h__ */