OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_manager_mac.h" | 5 #include "media/audio/mac/audio_manager_mac.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/mac/mac_logging.h" | 11 #include "base/mac/mac_logging.h" |
12 #include "base/mac/scoped_cftyperef.h" | 12 #include "base/mac/scoped_cftyperef.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/free_deleter.h" | 14 #include "base/memory/free_deleter.h" |
15 #include "base/power_monitor/power_monitor.h" | 15 #include "base/power_monitor/power_monitor.h" |
16 #include "base/power_monitor/power_observer.h" | 16 #include "base/power_monitor/power_observer.h" |
17 #include "base/strings/sys_string_conversions.h" | 17 #include "base/strings/sys_string_conversions.h" |
18 #include "base/threading/thread_checker.h" | 18 #include "base/threading/thread_checker.h" |
19 #include "media/audio/audio_parameters.h" | |
20 #include "media/audio/mac/audio_auhal_mac.h" | 19 #include "media/audio/mac/audio_auhal_mac.h" |
21 #include "media/audio/mac/audio_input_mac.h" | 20 #include "media/audio/mac/audio_input_mac.h" |
22 #include "media/audio/mac/audio_low_latency_input_mac.h" | 21 #include "media/audio/mac/audio_low_latency_input_mac.h" |
| 22 #include "media/base/audio_parameters.h" |
23 #include "media/base/bind_to_current_loop.h" | 23 #include "media/base/bind_to_current_loop.h" |
24 #include "media/base/channel_layout.h" | 24 #include "media/base/channel_layout.h" |
25 #include "media/base/limits.h" | 25 #include "media/base/limits.h" |
26 #include "media/base/media_switches.h" | 26 #include "media/base/media_switches.h" |
27 | 27 |
28 namespace media { | 28 namespace media { |
29 | 29 |
30 // Maximum number of output streams that can be open simultaneously. | 30 // Maximum number of output streams that can be open simultaneously. |
31 static const int kMaxOutputStreams = 50; | 31 static const int kMaxOutputStreams = 50; |
32 | 32 |
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
937 ScopedAudioManagerPtr CreateAudioManager( | 937 ScopedAudioManagerPtr CreateAudioManager( |
938 scoped_refptr<base::SingleThreadTaskRunner> task_runner, | 938 scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
939 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner, | 939 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner, |
940 AudioLogFactory* audio_log_factory) { | 940 AudioLogFactory* audio_log_factory) { |
941 return ScopedAudioManagerPtr( | 941 return ScopedAudioManagerPtr( |
942 new AudioManagerMac(std::move(task_runner), std::move(worker_task_runner), | 942 new AudioManagerMac(std::move(task_runner), std::move(worker_task_runner), |
943 audio_log_factory)); | 943 audio_log_factory)); |
944 } | 944 } |
945 | 945 |
946 } // namespace media | 946 } // namespace media |
OLD | NEW |