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

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

Issue 12316131: Moved AudioUtil static functions to AudioManager interfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // callback is to recreate the stream. 113 // callback is to recreate the stream.
114 class AudioDeviceListener { 114 class AudioDeviceListener {
115 public: 115 public:
116 virtual void OnDeviceChange() = 0; 116 virtual void OnDeviceChange() = 0;
117 }; 117 };
118 118
119 virtual void AddOutputDeviceChangeListener(AudioDeviceListener* listener) = 0; 119 virtual void AddOutputDeviceChangeListener(AudioDeviceListener* listener) = 0;
120 virtual void RemoveOutputDeviceChangeListener( 120 virtual void RemoveOutputDeviceChangeListener(
121 AudioDeviceListener* listener) = 0; 121 AudioDeviceListener* listener) = 0;
122 122
123 // Returns the default output hardware audio parameters for opening output
124 // streams.
125 virtual AudioParameters GetDefaultOutputStreamParameters() = 0;
126
127 // Returns the default input hardware audio parameters of the specific device
128 // for opening input streams.
129 virtual AudioParameters GetDefaultInputStreamParameters(
Chris Rogers 2013/02/27 20:06:14 It seems like a better name for GetDefaultInputStr
tommi (sloooow) - chröme 2013/03/01 11:29:29 +1
no longer working on chromium 2013/03/01 16:44:33 Done.
130 const std::string& device_id) = 0;
131
123 protected: 132 protected:
124 AudioManager(); 133 AudioManager();
125 134
126 private: 135 private:
127 DISALLOW_COPY_AND_ASSIGN(AudioManager); 136 DISALLOW_COPY_AND_ASSIGN(AudioManager);
128 }; 137 };
129 138
130 } // namespace media 139 } // namespace media
131 140
132 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ 141 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698