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_DEVICE_FACTORY_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_FACTORY_H_ |
6 #define CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_FACTORY_H_ | 6 #define CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_FACTORY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 20 matching lines...) Expand all Loading... | |
31 // TODO(olka): rename it, probably split it into AudioRendererSinkFactory and | 31 // TODO(olka): rename it, probably split it into AudioRendererSinkFactory and |
32 // AudioCapturerSourceFactory. | 32 // AudioCapturerSourceFactory. |
33 class CONTENT_EXPORT AudioDeviceFactory { | 33 class CONTENT_EXPORT AudioDeviceFactory { |
34 public: | 34 public: |
35 // Types of audio sources. | 35 // Types of audio sources. |
36 enum SourceType { | 36 enum SourceType { |
37 kSourceNone = 0, | 37 kSourceNone = 0, |
38 kSourceMediaElement, | 38 kSourceMediaElement, |
39 kSourceWebRtc, | 39 kSourceWebRtc, |
40 kSourceNonRtcAudioTrack, | 40 kSourceNonRtcAudioTrack, |
41 kSourceWebAudio, | 41 kSourceWebAudioInteractive, |
chcunningham
2016/06/22 02:13:56
Can you add some comments about what makes these t
o1ka
2016/06/23 16:36:15
Tried to explain in the enum comment. I don't thin
chcunningham
2016/06/27 23:12:24
Acknowledged.
| |
42 kSourceLast = kSourceWebAudio // Only used for validation of format. | 42 kSourceWebAudioBalanced, |
43 kSourceWebAudioPlayback, | |
44 kSourceWebAudioExact, | |
45 kSourceLast = kSourceWebAudioExact // Only used for validation of format. | |
43 }; | 46 }; |
44 | 47 |
45 // Creates a sink for AudioRendererMixer. | 48 // Creates a sink for AudioRendererMixer. |
46 // |render_frame_id| refers to the RenderFrame containing the entity | 49 // |render_frame_id| refers to the RenderFrame containing the entity |
47 // producing the audio. If |session_id| is nonzero, it is used by the browser | 50 // producing the audio. If |session_id| is nonzero, it is used by the browser |
48 // to select the correct input device ID and its associated output device, if | 51 // to select the correct input device ID and its associated output device, if |
49 // it exists. If |session_id| is zero, |device_id| and |security_origin| | 52 // it exists. If |session_id| is zero, |device_id| and |security_origin| |
50 // identify the output device to use. | 53 // identify the output device to use. |
51 // If |session_id| is zero and |device_id| and |security_origin| are empty, | 54 // If |session_id| is zero and |device_id| and |security_origin| are empty, |
52 // the default output device will be selected. | 55 // the default output device will be selected. |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
135 int session_id, | 138 int session_id, |
136 const std::string& device_id, | 139 const std::string& device_id, |
137 const url::Origin& security_origin); | 140 const url::Origin& security_origin); |
138 | 141 |
139 DISALLOW_COPY_AND_ASSIGN(AudioDeviceFactory); | 142 DISALLOW_COPY_AND_ASSIGN(AudioDeviceFactory); |
140 }; | 143 }; |
141 | 144 |
142 } // namespace content | 145 } // namespace content |
143 | 146 |
144 #endif // CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_FACTORY_H_ | 147 #endif // CONTENT_RENDERER_MEDIA_AUDIO_DEVICE_FACTORY_H_ |
OLD | NEW |