#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/midi/usb_midi_input_stream.h"
#include <string.h>
#include "base/logging.h"
#include "media/midi/usb_midi_device.h"
namespace midi {
UsbMidiInputStream::JackUniqueKey::JackUniqueKey(UsbMidiDevice* device,
int endpoint_number,
int cable_number)
: … { … }
bool UsbMidiInputStream::JackUniqueKey::operator==(
const JackUniqueKey& that) const { … }
bool UsbMidiInputStream::JackUniqueKey::operator<(
const JackUniqueKey& that) const { … }
UsbMidiInputStream::UsbMidiInputStream(Delegate* delegate)
: … { … }
UsbMidiInputStream::~UsbMidiInputStream() = default;
void UsbMidiInputStream::Add(const UsbMidiJack& jack) { … }
void UsbMidiInputStream::OnReceivedData(UsbMidiDevice* device,
int endpoint_number,
const uint8_t* data,
size_t size,
base::TimeTicks time) { … }
void UsbMidiInputStream::ProcessOnePacket(UsbMidiDevice* device,
int endpoint_number,
const uint8_t* packet,
base::TimeTicks time) { … }
}