diff --git a/include/boo/audiodev/MIDIEncoder.hpp b/include/boo/audiodev/MIDIEncoder.hpp index 693152e..42f3741 100644 --- a/include/boo/audiodev/MIDIEncoder.hpp +++ b/include/boo/audiodev/MIDIEncoder.hpp @@ -1,5 +1,8 @@ #pragma once +#include +#include + #include "boo/audiodev/IMIDIReader.hpp" namespace boo { @@ -8,7 +11,14 @@ template class MIDIEncoder : public IMIDIReader { Sender& m_sender; uint8_t m_status = 0; + void _sendMessage(const uint8_t* data, size_t len); + + template + void _sendMessage(const ContiguousContainer& container) { + _sendMessage(std::data(container), std::size(container)); + } + void _sendContinuedValue(uint32_t val); public: