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

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

Issue 1186293003: Implement HasInputDevices in CrasAudioManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 const std::string& device_id) override; 105 const std::string& device_id) override;
106 106
107 std::string GetAssociatedOutputDeviceID( 107 std::string GetAssociatedOutputDeviceID(
108 const std::string& input_device_id) override; 108 const std::string& input_device_id) override;
109 109
110 scoped_ptr<AudioLog> CreateAudioLog( 110 scoped_ptr<AudioLog> CreateAudioLog(
111 AudioLogFactory::AudioComponent component) override; 111 AudioLogFactory::AudioComponent component) override;
112 112
113 void SetHasKeyboardMic() override; 113 void SetHasKeyboardMic() override;
114 114
115 void SetHasInputDevices(bool has_input_devices) override;
Daniel Erat 2015/06/18 14:53:20 nit: if these methods all implement the AudioManag
cychiang 2015/06/23 06:05:40 Done.
116
115 // Get number of input or output streams. 117 // Get number of input or output streams.
116 int input_stream_count() const { return num_input_streams_; } 118 int input_stream_count() const { return num_input_streams_; }
117 int output_stream_count() const { return num_output_streams_; } 119 int output_stream_count() const { return num_output_streams_; }
118 120
119 protected: 121 protected:
120 AudioManagerBase(AudioLogFactory* audio_log_factory); 122 AudioManagerBase(AudioLogFactory* audio_log_factory);
121 123
122 // Shuts down the audio thread and releases all the audio output dispatchers 124 // Shuts down the audio thread and releases all the audio output dispatchers
123 // on the audio thread. All audio streams should be freed before Shutdown() 125 // on the audio thread. All audio streams should be freed before Shutdown()
124 // is called. This must be called in the destructor of every AudioManagerBase 126 // is called. This must be called in the destructor of every AudioManagerBase
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 192
191 // Proxy for creating AudioLog objects. 193 // Proxy for creating AudioLog objects.
192 AudioLogFactory* const audio_log_factory_; 194 AudioLogFactory* const audio_log_factory_;
193 195
194 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); 196 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase);
195 }; 197 };
196 198
197 } // namespace media 199 } // namespace media
198 200
199 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ 201 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698