diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-12-01 16:22:51 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-12-01 16:22:51 +0000 |
commit | 8480cf69ce693e7effeb677d791fbe1d5ea004cb (patch) | |
tree | ec5adb980b473c6be27510295312f95a3b839f90 /libs/ardour/ardour/buffer.h | |
parent | d4030cd32a84ea9bbecc0594f4234e482a1c0bb0 (diff) |
provide semantic ordering of simultaneous MIDI events; add operator== to MidiBuffer iterator; add empty() to MidiBuffer for no particular reason
git-svn-id: svn://localhost/ardour2/branches/3.0@10846 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/buffer.h')
-rw-r--r-- | libs/ardour/ardour/buffer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/ardour/ardour/buffer.h b/libs/ardour/ardour/buffer.h index 4775f24e95..15e97ccc10 100644 --- a/libs/ardour/ardour/buffer.h +++ b/libs/ardour/ardour/buffer.h @@ -56,6 +56,9 @@ public: /** Amount of valid data in buffer. Use this over capacity almost always. */ size_t size() const { return _size; } + /** Return true if the buffer contains no data, false otherwise */ + virtual bool empty() const { return _size == 0; } + /** Type of this buffer. * Based on this you can static cast a Buffer* to the desired type. */ DataType type() const { return _type; } |