mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
Use shared port engine MIDI event compare operator
This commit is contained in:
parent
dbd8089fb8
commit
a393f75694
6 changed files with 9 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue