Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 CONTENT_RENDERER_MEDIA_AUDIO_RENDERER_MIXER_MANAGER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_AUDIO_RENDERER_MIXER_MANAGER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_AUDIO_RENDERER_MIXER_MANAGER_H_ | 6 #define CONTENT_RENDERER_MEDIA_AUDIO_RENDERER_MIXER_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 120 | 120 |
| 121 // Overrides the AudioRendererSink implementation for unit testing. | 121 // Overrides the AudioRendererSink implementation for unit testing. |
| 122 void SetAudioRendererSinkForTesting(media::AudioRendererSink* sink); | 122 void SetAudioRendererSinkForTesting(media::AudioRendererSink* sink); |
| 123 | 123 |
| 124 // Active mixers. | 124 // Active mixers. |
| 125 AudioRendererMixerMap mixers_; | 125 AudioRendererMixerMap mixers_; |
| 126 base::Lock mixers_lock_; | 126 base::Lock mixers_lock_; |
| 127 | 127 |
| 128 media::AudioRendererSink* sink_for_testing_; | 128 media::AudioRendererSink* sink_for_testing_; |
| 129 | 129 |
| 130 // A helper to get output HW parameters in the absence of AudioOutputDevice. | |
|
DaleCurtis
2016/02/10 23:25:33
Methods always go above variables.
o1ka
2016/02/11 17:18:23
Done.
| |
| 131 static media::AudioParameters GetOutputHWParams( | |
|
DaleCurtis
2016/02/10 23:25:33
Naming wise this should be something like GetHardw
o1ka
2016/02/11 17:18:23
Done.
| |
| 132 int render_frame_id, | |
| 133 int session_id, | |
| 134 const std::string& device_id, | |
| 135 const url::Origin& security_origin); | |
| 136 | |
| 130 DISALLOW_COPY_AND_ASSIGN(AudioRendererMixerManager); | 137 DISALLOW_COPY_AND_ASSIGN(AudioRendererMixerManager); |
| 131 }; | 138 }; |
| 132 | 139 |
| 133 } // namespace content | 140 } // namespace content |
| 134 | 141 |
| 135 #endif // CONTENT_RENDERER_MEDIA_AUDIO_RENDERER_MIXER_MANAGER_H_ | 142 #endif // CONTENT_RENDERER_MEDIA_AUDIO_RENDERER_MIXER_MANAGER_H_ |
| OLD | NEW |