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

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

Issue 495983002: Improve logging related to start/stop and failure of audio input streams in Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Experimental version of AudioManagerBase logging Created 6 years, 4 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
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_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_H_
6 #define MEDIA_AUDIO_AUDIO_MANAGER_H_ 6 #define MEDIA_AUDIO_AUDIO_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // callback is to recreate the stream. 138 // callback is to recreate the stream.
139 class AudioDeviceListener { 139 class AudioDeviceListener {
140 public: 140 public:
141 virtual void OnDeviceChange() = 0; 141 virtual void OnDeviceChange() = 0;
142 }; 142 };
143 143
144 virtual void AddOutputDeviceChangeListener(AudioDeviceListener* listener) = 0; 144 virtual void AddOutputDeviceChangeListener(AudioDeviceListener* listener) = 0;
145 virtual void RemoveOutputDeviceChangeListener( 145 virtual void RemoveOutputDeviceChangeListener(
146 AudioDeviceListener* listener) = 0; 146 AudioDeviceListener* listener) = 0;
147 147
148 class StateChangeListener {
no longer working on chromium 2014/08/25 08:20:05 you probably need Dale to look at the change in Au
henrika (OOO until Aug 14) 2014/08/25 12:47:44 I was thinking of asking Dale or Tommi for a secon
149 public:
150 virtual void OnStateChange(const std::string state) = 0;
Henrik Grunell 2014/08/22 16:14:43 const std::string&
henrika (OOO until Aug 14) 2014/08/25 12:47:44 Done.
151 };
152
153 virtual void AddStateChangeListener(StateChangeListener* listener) = 0;
154 virtual void RemoveStateChangeListener(StateChangeListener* listener) = 0;
155
148 // Returns the default output hardware audio parameters for opening output 156 // Returns the default output hardware audio parameters for opening output
149 // streams. It is a convenience interface to 157 // streams. It is a convenience interface to
150 // AudioManagerBase::GetPreferredOutputStreamParameters and each AudioManager 158 // AudioManagerBase::GetPreferredOutputStreamParameters and each AudioManager
151 // does not need their own implementation to this interface. 159 // does not need their own implementation to this interface.
152 // TODO(tommi): Remove this method and use GetOutputStreamParameteres instead. 160 // TODO(tommi): Remove this method and use GetOutputStreamParameteres instead.
153 virtual AudioParameters GetDefaultOutputStreamParameters() = 0; 161 virtual AudioParameters GetDefaultOutputStreamParameters() = 0;
154 162
155 // Returns the output hardware audio parameters for a specific output device. 163 // Returns the output hardware audio parameters for a specific output device.
156 virtual AudioParameters GetOutputStreamParameters( 164 virtual AudioParameters GetOutputStreamParameters(
157 const std::string& device_id) = 0; 165 const std::string& device_id) = 0;
(...skipping 22 matching lines...) Expand all
180 protected: 188 protected:
181 AudioManager(); 189 AudioManager();
182 190
183 private: 191 private:
184 DISALLOW_COPY_AND_ASSIGN(AudioManager); 192 DISALLOW_COPY_AND_ASSIGN(AudioManager);
185 }; 193 };
186 194
187 } // namespace media 195 } // namespace media
188 196
189 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ 197 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698