diff options
author | Robin Gareus <robin@gareus.org> | 2020-01-31 16:26:41 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-02-06 17:30:21 +0100 |
commit | 56c1fa0c901fedcb04d8ed2cacf6f304190a50e3 (patch) | |
tree | 58ff81c2e619a88039a8da87520895da60962a0b /libs/ardour/ardour/readable.h | |
parent | 34c4602e61b61f6e7795d02bd64b477c9f26cfd7 (diff) |
Break out API to create readables from files
Diffstat (limited to 'libs/ardour/ardour/readable.h')
-rw-r--r-- | libs/ardour/ardour/readable.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/ardour/ardour/readable.h b/libs/ardour/ardour/readable.h index 0463b2fce4..ada47776cf 100644 --- a/libs/ardour/ardour/readable.h +++ b/libs/ardour/ardour/readable.h @@ -25,11 +25,15 @@ namespace ARDOUR { +class Session; + class LIBARDOUR_API Readable { - public: - Readable () {} +public: virtual ~Readable() {} + static std::vector<boost::shared_ptr<Readable> > + load (Session&, std::string const&); + virtual samplecnt_t read (Sample*, samplepos_t pos, samplecnt_t cnt, int channel) const = 0; virtual samplecnt_t readable_length() const = 0; virtual uint32_t n_channels () const = 0; |