OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/midi/midi_manager_mac.h" | 5 #include "media/midi/midi_manager_mac.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | |
9 | 8 |
10 #include "base/bind.h" | 9 #include "base/bind.h" |
11 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
12 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
13 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
14 | 13 |
15 #include <CoreAudio/HostTime.h> | 14 #include <CoreAudio/HostTime.h> |
16 | 15 |
17 using base::IntToString; | 16 using base::IntToString; |
18 using base::SysCFStringRefToUTF8; | 17 using base::SysCFStringRefToUTF8; |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 DCHECK(midi_packet); | 377 DCHECK(midi_packet); |
379 | 378 |
380 MIDISend(coremidi_output_, destination, packet_list); | 379 MIDISend(coremidi_output_, destination, packet_list); |
381 } | 380 } |
382 | 381 |
383 client->AccumulateMidiBytesSent(data.size()); | 382 client->AccumulateMidiBytesSent(data.size()); |
384 } | 383 } |
385 | 384 |
386 } // namespace midi | 385 } // namespace midi |
387 } // namespace media | 386 } // namespace media |
OLD | NEW |