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

Side by Side Diff: media/audio/audio_manager_base.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, 10 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_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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // http://crbug.com/137326 99 // http://crbug.com/137326
100 virtual AudioParameters GetPreferredLowLatencyOutputStreamParameters( 100 virtual AudioParameters GetPreferredLowLatencyOutputStreamParameters(
101 const AudioParameters& input_params); 101 const AudioParameters& input_params);
102 102
103 // Listeners will be notified on the AudioManager::GetMessageLoop() loop. 103 // Listeners will be notified on the AudioManager::GetMessageLoop() loop.
104 virtual void AddOutputDeviceChangeListener( 104 virtual void AddOutputDeviceChangeListener(
105 AudioDeviceListener* listener) OVERRIDE; 105 AudioDeviceListener* listener) OVERRIDE;
106 virtual void RemoveOutputDeviceChangeListener( 106 virtual void RemoveOutputDeviceChangeListener(
107 AudioDeviceListener* listener) OVERRIDE; 107 AudioDeviceListener* listener) OVERRIDE;
108 108
109 virtual AudioParameters GetDefaultOutputStreamParameters() OVERRIDE;
110 virtual AudioParameters GetDefaultInputStreamParameters(
111 const std::string& device_id) OVERRIDE;
112
109 protected: 113 protected:
110 AudioManagerBase(); 114 AudioManagerBase();
111 115
112 // TODO(dalecurtis): This must change to map both input and output parameters 116 // TODO(dalecurtis): This must change to map both input and output parameters
113 // to a single dispatcher, otherwise on a device state change we'll just get 117 // to a single dispatcher, otherwise on a device state change we'll just get
114 // the exact same invalid dispatcher. 118 // the exact same invalid dispatcher.
115 typedef std::map<std::pair<AudioParameters, AudioParameters>, 119 typedef std::map<std::pair<AudioParameters, AudioParameters>,
116 scoped_refptr<AudioOutputDispatcher> > 120 scoped_refptr<AudioOutputDispatcher> >
117 AudioOutputDispatchersMap; 121 AudioOutputDispatchersMap;
118 122
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // create all audio output streams as virtual streams so as to redirect audio 174 // create all audio output streams as virtual streams so as to redirect audio
171 // data to this virtual input stream. 175 // data to this virtual input stream.
172 VirtualAudioInputStream* virtual_audio_input_stream_; 176 VirtualAudioInputStream* virtual_audio_input_stream_;
173 177
174 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); 178 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase);
175 }; 179 };
176 180
177 } // namespace media 181 } // namespace media
178 182
179 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ 183 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698