Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: media/audio/mac/audio_manager_mac.cc

Issue 154573002: Remove deprecated non-AUHAL audio path on OSX. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/audio/mac/audio_low_latency_output_mac.cc ('k') | media/media.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <CoreAudio/AudioHardware.h> 7 #include <CoreAudio/AudioHardware.h>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/mac/mac_logging.h" 12 #include "base/mac/mac_logging.h"
13 #include "base/mac/scoped_cftyperef.h" 13 #include "base/mac/scoped_cftyperef.h"
14 #include "base/power_monitor/power_monitor.h" 14 #include "base/power_monitor/power_monitor.h"
15 #include "base/power_monitor/power_observer.h" 15 #include "base/power_monitor/power_observer.h"
16 #include "base/strings/sys_string_conversions.h" 16 #include "base/strings/sys_string_conversions.h"
17 #include "base/threading/thread_checker.h" 17 #include "base/threading/thread_checker.h"
18 #include "media/audio/audio_parameters.h" 18 #include "media/audio/audio_parameters.h"
19 #include "media/audio/mac/audio_auhal_mac.h" 19 #include "media/audio/mac/audio_auhal_mac.h"
20 #include "media/audio/mac/audio_input_mac.h" 20 #include "media/audio/mac/audio_input_mac.h"
21 #include "media/audio/mac/audio_low_latency_input_mac.h" 21 #include "media/audio/mac/audio_low_latency_input_mac.h"
22 #include "media/audio/mac/audio_low_latency_output_mac.h"
23 #include "media/base/bind_to_current_loop.h" 22 #include "media/base/bind_to_current_loop.h"
24 #include "media/base/channel_layout.h" 23 #include "media/base/channel_layout.h"
25 #include "media/base/limits.h" 24 #include "media/base/limits.h"
26 #include "media/base/media_switches.h" 25 #include "media/base/media_switches.h"
27 26
28 namespace media { 27 namespace media {
29 28
30 // Maximum number of output streams that can be open simultaneously. 29 // Maximum number of output streams that can be open simultaneously.
31 static const int kMaxOutputStreams = 50; 30 static const int kMaxOutputStreams = 50;
32 31
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 bool AudioManagerMac::ShouldDeferOutputStreamStart() { 737 bool AudioManagerMac::ShouldDeferOutputStreamStart() {
739 DCHECK(GetTaskRunner()->BelongsToCurrentThread()); 738 DCHECK(GetTaskRunner()->BelongsToCurrentThread());
740 return power_observer_->ShouldDeferOutputStreamStart(); 739 return power_observer_->ShouldDeferOutputStreamStart();
741 } 740 }
742 741
743 AudioManager* CreateAudioManager(AudioLogFactory* audio_log_factory) { 742 AudioManager* CreateAudioManager(AudioLogFactory* audio_log_factory) {
744 return new AudioManagerMac(audio_log_factory); 743 return new AudioManagerMac(audio_log_factory);
745 } 744 }
746 745
747 } // namespace media 746 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/mac/audio_low_latency_output_mac.cc ('k') | media/media.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698