diff options
Diffstat (limited to 'media/midi/midi_manager_mac.cc')
-rw-r--r-- | media/midi/midi_manager_mac.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/media/midi/midi_manager_mac.cc b/media/midi/midi_manager_mac.cc index fa4b3fd..d766bdb 100644 --- a/media/midi/midi_manager_mac.cc +++ b/media/midi/midi_manager_mac.cc @@ -146,12 +146,12 @@ void MIDIManagerMac::ReadMidi(MIDIEndpointRef source, } } -void MIDIManagerMac::SendMIDIData(int port_index, +void MIDIManagerMac::SendMIDIData(MIDIManagerClient* client, + int port_index, const uint8* data, size_t length, double timestamp) { - // TODO(crogers): Filter out sysex. - + // System Exclusive has already been filtered. MIDITimeStamp coremidi_timestamp = SecondsToMIDITimeStamp(timestamp); midi_packet_ = MIDIPacketListAdd( @@ -175,6 +175,8 @@ void MIDIManagerMac::SendMIDIData(int port_index, // Re-initialize for next time. midi_packet_ = MIDIPacketListInit(packet_list_); + + client->AccumulateMIDIBytesSent(length); } MIDIPortInfo MIDIManagerMac::GetPortInfoFromEndpoint( |