OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/audio/mac/audio_auhal_mac.h" | 5 #include "media/audio/mac/audio_auhal_mac.h" |
6 | 6 |
7 #include <CoreServices/CoreServices.h> | 7 #include <CoreServices/CoreServices.h> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/debug/trace_event.h" | |
13 #include "base/logging.h" | 12 #include "base/logging.h" |
14 #include "base/mac/mac_logging.h" | 13 #include "base/mac/mac_logging.h" |
15 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "base/trace_event/trace_event.h" |
16 #include "media/audio/mac/audio_manager_mac.h" | 16 #include "media/audio/mac/audio_manager_mac.h" |
17 #include "media/base/audio_pull_fifo.h" | 17 #include "media/base/audio_pull_fifo.h" |
18 | 18 |
19 namespace media { | 19 namespace media { |
20 | 20 |
21 static void WrapBufferList(AudioBufferList* buffer_list, | 21 static void WrapBufferList(AudioBufferList* buffer_list, |
22 AudioBus* bus, | 22 AudioBus* bus, |
23 int frames) { | 23 int frames) { |
24 DCHECK(buffer_list); | 24 DCHECK(buffer_list); |
25 DCHECK(bus); | 25 DCHECK(bus); |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 result = AudioUnitInitialize(audio_unit_); | 435 result = AudioUnitInitialize(audio_unit_); |
436 if (result != noErr) { | 436 if (result != noErr) { |
437 OSSTATUS_DLOG(ERROR, result) << "AudioUnitInitialize() failed."; | 437 OSSTATUS_DLOG(ERROR, result) << "AudioUnitInitialize() failed."; |
438 return false; | 438 return false; |
439 } | 439 } |
440 | 440 |
441 return true; | 441 return true; |
442 } | 442 } |
443 | 443 |
444 } // namespace media | 444 } // namespace media |
OLD | NEW |