58 using storage_t = std::vector<MIDIMessageQueueElement>;
73 std::atomic_size_t
size{0};
MIDIReadEvent
Values returned by the MIDI reading functions.
@ CHANNEL_MESSAGE
A MIDI Channel message was received.
@ SYSCOMMON_MESSAGE
A MIDI System Common message was received.
@ NO_MESSAGE
No new messages were received.
@ REALTIME_MESSAGE
A MIDI Real-Time message was received.
#define BEGIN_CS_NAMESPACE
bool push(SysCommonMessage message, uint16_t timestamp)
storage_t::iterator iter_t
bool push(RealTimeMessage message, uint16_t timestamp)
std::vector< MIDIMessageQueueElement > storage_t
bool push(ChannelMessage message, uint16_t timestamp)
bool push(SysExMessage message, uint16_t timestamp)
bool push(MIDIMessageQueueElement &&message)
bool pop(MIDIMessageQueueElement &message)
MIDIMessageQueue(size_t capacity)
MIDIMessageQueueElement & operator=(MIDIMessageQueueElement &&that)
Move assignemnt.
void release()
Deallocate the storage for the SysEx data (if present).
MIDIMessageQueueElement(RealTimeMessage message, uint16_t timestamp)
MIDIMessageQueueElement & operator=(const MIDIMessageQueueElement &)=delete
No copy assignment.
MIDIMessageQueueElement(SysCommonMessage message, uint16_t timestamp)
union MIDIMessageQueue::MIDIMessageQueueElement::Message message
MIDIMessageQueueElement(MIDIMessageQueueElement &&that)
Move constructor.
MIDIMessageQueueElement(const MIDIMessageQueueElement &)=delete
No copy constructor.
~MIDIMessageQueueElement()
MIDIMessageQueueElement(ChannelMessage message, uint16_t timestamp)
MIDIMessageQueueElement()=default
MIDIMessageQueueElement(SysExMessage message, uint16_t timestamp)
Message(ChannelMessage msg)
Message(SysExMessage msg)
ChannelMessage channelmessage
RealTimeMessage realtimemessage
Message(RealTimeMessage msg)
SysCommonMessage syscommonmessage
Message(SysCommonMessage msg)
SysExMessage sysexmessage