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

Side by Side Diff: media/audio/android/audio_manager_android.cc

Issue 8818012: Remove the AudioManager singleton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Set svn eol properties for a couple of files Created 9 years 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 | « content/test/webrtc_audio_device_test.cc ('k') | media/audio/audio_input_controller.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/android/audio_manager_android.h" 5 #include "media/audio/android/audio_manager_android.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "media/audio/android/audio_track_output_android.h" 8 #include "media/audio/android/audio_track_output_android.h"
9 #include "media/audio/audio_manager.h" 9 #include "media/audio/audio_manager.h"
10 #include "media/audio/fake_audio_input_stream.h" 10 #include "media/audio/fake_audio_input_stream.h"
11 #include "media/audio/fake_audio_output_stream.h" 11 #include "media/audio/fake_audio_output_stream.h"
12 12
13 // static 13 AudioManager* CreateAudioManager() {
14 AudioManager* AudioManager::CreateAudioManager() {
15 return new AudioManagerAndroid(); 14 return new AudioManagerAndroid();
16 } 15 }
17 16
18 AudioManagerAndroid::AudioManagerAndroid() {} 17 AudioManagerAndroid::AudioManagerAndroid() {}
19 18
20 AudioManagerAndroid::~AudioManagerAndroid() { 19 AudioManagerAndroid::~AudioManagerAndroid() {
21 audio_thread_.Stop(); 20 audio_thread_.Stop();
22 } 21 }
23 22
24 bool AudioManagerAndroid::HasAudioOutputDevices() { 23 bool AudioManagerAndroid::HasAudioOutputDevices() {
(...skipping 23 matching lines...) Expand all
48 return FakeAudioInputStream::MakeFakeStream(params); 47 return FakeAudioInputStream::MakeFakeStream(params);
49 } 48 }
50 49
51 void AudioManagerAndroid::MuteAll() { 50 void AudioManagerAndroid::MuteAll() {
52 NOTIMPLEMENTED(); 51 NOTIMPLEMENTED();
53 } 52 }
54 53
55 void AudioManagerAndroid::UnMuteAll() { 54 void AudioManagerAndroid::UnMuteAll() {
56 NOTIMPLEMENTED(); 55 NOTIMPLEMENTED();
57 } 56 }
OLDNEW
« no previous file with comments | « content/test/webrtc_audio_device_test.cc ('k') | media/audio/audio_input_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698