#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/midi/usb_midi_output_stream.h"
#include "base/logging.h"
#include "media/midi/message_util.h"
#include "media/midi/usb_midi_device.h"
namespace midi {
UsbMidiOutputStream::UsbMidiOutputStream(const UsbMidiJack& jack)
: … { … }
void UsbMidiOutputStream::Send(const std::vector<uint8_t>& data) { … }
size_t UsbMidiOutputStream::GetSize(const std::vector<uint8_t>& data) const { … }
uint8_t UsbMidiOutputStream::Get(const std::vector<uint8_t>& data,
size_t index) const { … }
bool UsbMidiOutputStream::PushSysExMessage(const std::vector<uint8_t>& data,
size_t* current,
std::vector<uint8_t>* data_to_send) { … }
bool UsbMidiOutputStream::PushSysCommonMessage(
const std::vector<uint8_t>& data,
size_t* current,
std::vector<uint8_t>* data_to_send) { … }
void UsbMidiOutputStream::PushSysRTMessage(const std::vector<uint8_t>& data,
size_t* current,
std::vector<uint8_t>* data_to_send) { … }
bool UsbMidiOutputStream::PushChannelMessage(
const std::vector<uint8_t>& data,
size_t* current,
std::vector<uint8_t>* data_to_send) { … }
}