Use shared port engine MIDI event compare operator

This commit is contained in:
Robin Gareus 2021-11-30 18:37:29 +01:00
parent dbd8089fb8
commit a393f75694
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
6 changed files with 9 additions and 15 deletions

View file

@ -45,14 +45,13 @@ namespace ARDOUR {
class CoreAudioBackend;
class CoreMidiEvent {
class CoreMidiEvent : public BackendMIDIEvent {
public:
CoreMidiEvent (const pframes_t timestamp, const uint8_t* data, size_t size);
CoreMidiEvent (const CoreMidiEvent& other);
size_t size () const { return _size; };
pframes_t timestamp () const { return _timestamp; };
const uint8_t* data () const { return _data; };
bool operator< (const CoreMidiEvent &other) const { return timestamp () < other.timestamp (); };
private:
size_t _size;
pframes_t _timestamp;