diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-06-24 18:04:38 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-06-24 18:04:38 +0000 |
commit | de24d4f8b11b959a5155051a9f4a7b456b4ab465 (patch) | |
tree | 85acac135bc98d73e392a6ac6cc21953cf1b3e58 /libs/ardour/ardour/source.h | |
parent | e72d710734f6371cb2653ad67c862d941e5cc173 (diff) |
add and use Source::empty() since it can be done more efficiently than length(pos) == 0
git-svn-id: svn://localhost/ardour2/branches/3.0@7300 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/source.h')
-rw-r--r-- | libs/ardour/ardour/source.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/ardour/ardour/source.h b/libs/ardour/ardour/source.h index 3ee1e609fc..9abf7ff8f0 100644 --- a/libs/ardour/ardour/source.h +++ b/libs/ardour/ardour/source.h @@ -60,6 +60,7 @@ class Source : public SessionObject time_t timestamp() const { return _timestamp; } void stamp (time_t when) { _timestamp = when; } + virtual bool empty () const = 0; virtual framecnt_t length (framepos_t pos) const = 0; virtual void update_length (framepos_t pos, framecnt_t cnt) = 0; |