|
Ardour
9.0-pre0-1939-gd2b1b6f8ed
|
#include <midi_buffer.h>
Classes | |
| class | iterator_base |
Public Types | |
| typedef samplepos_t | TimeType |
| typedef iterator_base< MidiBuffer, Evoral::Event< TimeType > > | iterator |
| typedef iterator_base< const MidiBuffer, const Evoral::Event< TimeType > > | const_iterator |
Public Member Functions | |
| MidiBuffer (size_t capacity) | |
| ~MidiBuffer () | |
| void | clear () |
| void | silence (samplecnt_t nframes, samplecnt_t offset=0) |
| void | read_from (const Buffer &src, samplecnt_t nframes, sampleoffset_t dst_offset=0, sampleoffset_t src_offset=0) |
| void | merge_from (const Buffer &src, samplecnt_t nframes, sampleoffset_t dst_offset=0, sampleoffset_t src_offset=0) |
| void | copy (const MidiBuffer ©) |
| void | copy (MidiBuffer const *const) |
| bool | push_back (const Evoral::Event< TimeType > &event) |
| bool | push_back (TimeType time, Evoral::EventType event_type, size_t size, const uint8_t *data) |
| uint8_t * | reserve (TimeType time, Evoral::EventType event_type, size_t size) |
| void | resize (size_t) |
| size_t | size () const |
| bool | empty () const |
| bool | silent_data () const |
| bool | insert_event (const Evoral::Event< TimeType > &event) |
| bool | merge_in_place (const MidiBuffer &other) |
| uint32_t | write (TimeType time, Evoral::EventType type, uint32_t size, const uint8_t *buf) |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| iterator | erase (const iterator &i) |
Public Member Functions inherited from ARDOUR::Buffer | |
| Buffer (const Buffer &)=delete | |
| Buffer & | operator= (const Buffer &)=delete |
| virtual | ~Buffer () |
| size_t | capacity () const |
| DataType | type () const |
| bool | silent () const |
Public Member Functions inherited from Evoral::EventSink< samplepos_t > | |
| virtual | ~EventSink () |
| virtual uint32_t | write (samplepos_t time, EventType type, uint32_t size, const uint8_t *buf)=0 |
Static Public Member Functions | |
| static bool | second_simultaneous_midi_byte_is_first (uint8_t, uint8_t) |
Static Public Member Functions inherited from ARDOUR::Buffer | |
| static Buffer * | create (DataType type, size_t capacity) |
Static Private Member Functions | |
| static size_t | align32 (size_t s) |
Private Attributes | |
| uint8_t * | _data |
| [timestamp, event-type, event]* More... | |
| pframes_t | _size |
Friends | |
| class | iterator_base< MidiBuffer, Evoral::Event< TimeType > > |
| class | iterator_base< const MidiBuffer, const Evoral::Event< TimeType > > |
Additional Inherited Members | |
Protected Member Functions inherited from ARDOUR::Buffer | |
| Buffer (DataType type) | |
Protected Attributes inherited from ARDOUR::Buffer | |
| DataType | _type |
| pframes_t | _capacity |
| bool | _silent |
Buffer containing 8-bit unsigned char (MIDI) data.
Definition at line 37 of file midi_buffer.h.
| typedef iterator_base< const MidiBuffer, const Evoral::Event<TimeType> > ARDOUR::MidiBuffer::const_iterator |
Definition at line 142 of file midi_buffer.h.
Definition at line 141 of file midi_buffer.h.
Definition at line 40 of file midi_buffer.h.
| ARDOUR::MidiBuffer::MidiBuffer | ( | size_t | capacity | ) |
| ARDOUR::MidiBuffer::~MidiBuffer | ( | ) |
|
inlinestaticprivate |
Definition at line 205 of file midi_buffer.h.
|
inline |
Definition at line 144 of file midi_buffer.h.
|
inline |
Definition at line 147 of file midi_buffer.h.
|
virtual |
Clear the entire buffer
Reimplemented from ARDOUR::Buffer.
| void ARDOUR::MidiBuffer::copy | ( | const MidiBuffer & | copy | ) |
| void ARDOUR::MidiBuffer::copy | ( | MidiBuffer const * const | ) |
|
inline |
Definition at line 60 of file midi_buffer.h.
|
inline |
Definition at line 145 of file midi_buffer.h.
|
inline |
Definition at line 148 of file midi_buffer.h.
Definition at line 150 of file midi_buffer.h.
| bool ARDOUR::MidiBuffer::insert_event | ( | const Evoral::Event< TimeType > & | event | ) |
|
virtual |
Implements ARDOUR::Buffer.
| bool ARDOUR::MidiBuffer::merge_in_place | ( | const MidiBuffer & | other | ) |
| bool ARDOUR::MidiBuffer::push_back | ( | const Evoral::Event< TimeType > & | event | ) |
| bool ARDOUR::MidiBuffer::push_back | ( | TimeType | time, |
| Evoral::EventType | event_type, | ||
| size_t | size, | ||
| const uint8_t * | data | ||
| ) |
|
virtual |
Implements ARDOUR::Buffer.
| uint8_t* ARDOUR::MidiBuffer::reserve | ( | TimeType | time, |
| Evoral::EventType | event_type, | ||
| size_t | size | ||
| ) |
|
virtual |
Reallocate the buffer used internally to handle at least size_t units of data.
The buffer is not silent after this operation. the capacity argument passed to the constructor must have been non-zero.
Implements ARDOUR::Buffer.
|
static |
|
virtual |
Clear (eg zero, or empty) buffer
Implements ARDOUR::Buffer.
|
inlinevirtual |
Implements ARDOUR::Buffer.
Definition at line 61 of file midi_buffer.h.
|
inline |
Definition at line 59 of file midi_buffer.h.
| uint32_t ARDOUR::MidiBuffer::write | ( | TimeType | time, |
| Evoral::EventType | type, | ||
| uint32_t | size, | ||
| const uint8_t * | buf | ||
| ) |
EventSink interface for non-RT use (export, bounce).
|
friend |
Definition at line 199 of file midi_buffer.h.
|
friend |
Definition at line 199 of file midi_buffer.h.
|
private |
[timestamp, event-type, event]*
Definition at line 213 of file midi_buffer.h.
|
private |
Definition at line 214 of file midi_buffer.h.