if (event_index >= source.size ()) {
return -1;
}
- PortMidiEvent const& event = source[event_index].get ();
+ PortMidiEvent const& event = source[event_index];
timestamp = event.timestamp ();
size = event.size ();
PortMidiEvent (const PortMidiEvent& other);
size_t size () const { return _size; };
pframes_t timestamp () const { return _timestamp; };
- const uint8_t* const_data () const { return _data; };
+ const uint8_t* data () const { return _data; };
bool operator< (const PortMidiEvent &other) const { return timestamp () < other.timestamp (); };
private:
size_t _size;