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

Side by Side Diff: media/audio/audio_manager_base.h

Issue 583833008: Set keyboard mic effect if available. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: This should be the correct setup and teardown order for tests. Created 6 years, 3 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
« no previous file with comments | « media/audio/audio_manager.h ('k') | media/audio/audio_manager_base.cc » ('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 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
6 #define MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ 6 #define MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 virtual AudioParameters GetInputStreamParameters( 109 virtual AudioParameters GetInputStreamParameters(
110 const std::string& device_id) OVERRIDE; 110 const std::string& device_id) OVERRIDE;
111 111
112 virtual std::string GetAssociatedOutputDeviceID( 112 virtual std::string GetAssociatedOutputDeviceID(
113 const std::string& input_device_id) OVERRIDE; 113 const std::string& input_device_id) OVERRIDE;
114 114
115 virtual scoped_ptr<AudioLog> CreateAudioLog( 115 virtual scoped_ptr<AudioLog> CreateAudioLog(
116 AudioLogFactory::AudioComponent component) OVERRIDE; 116 AudioLogFactory::AudioComponent component) OVERRIDE;
117 117
118 virtual void SetHasKeyboardMic() OVERRIDE;
119
118 // Get number of input or output streams. 120 // Get number of input or output streams.
119 int input_stream_count() const { return num_input_streams_; } 121 int input_stream_count() const { return num_input_streams_; }
120 int output_stream_count() const { return num_output_streams_; } 122 int output_stream_count() const { return num_output_streams_; }
121 123
122 protected: 124 protected:
123 AudioManagerBase(AudioLogFactory* audio_log_factory); 125 AudioManagerBase(AudioLogFactory* audio_log_factory);
124 126
125 // Shuts down the audio thread and releases all the audio output dispatchers 127 // Shuts down the audio thread and releases all the audio output dispatchers
126 // on the audio thread. All audio streams should be freed before Shutdown() 128 // on the audio thread. All audio streams should be freed before Shutdown()
127 // is called. This must be called in the destructor of every AudioManagerBase 129 // is called. This must be called in the destructor of every AudioManagerBase
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 195
194 // Proxy for creating AudioLog objects. 196 // Proxy for creating AudioLog objects.
195 AudioLogFactory* const audio_log_factory_; 197 AudioLogFactory* const audio_log_factory_;
196 198
197 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); 199 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase);
198 }; 200 };
199 201
200 } // namespace media 202 } // namespace media
201 203
202 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ 204 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
OLDNEW
« no previous file with comments | « media/audio/audio_manager.h ('k') | media/audio/audio_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698