OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 virtual VoiceMediaChannel* CreateChannel(webrtc::Call* call, | 65 virtual VoiceMediaChannel* CreateChannel(webrtc::Call* call, |
66 const MediaConfig& config, | 66 const MediaConfig& config, |
67 const AudioOptions& options) = 0; | 67 const AudioOptions& options) = 0; |
68 // Creates a video media channel, paired with the specified voice channel. | 68 // Creates a video media channel, paired with the specified voice channel. |
69 // Returns NULL on failure. | 69 // Returns NULL on failure. |
70 virtual VideoMediaChannel* CreateVideoChannel( | 70 virtual VideoMediaChannel* CreateVideoChannel( |
71 webrtc::Call* call, | 71 webrtc::Call* call, |
72 const MediaConfig& config, | 72 const MediaConfig& config, |
73 const VideoOptions& options) = 0; | 73 const VideoOptions& options) = 0; |
74 | 74 |
75 // Device configuration | |
76 // Gets the current speaker volume, as a value between 0 and 255. | |
77 virtual bool GetOutputVolume(int* level) = 0; | |
78 // Sets the current speaker volume, as a value between 0 and 255. | |
79 virtual bool SetOutputVolume(int level) = 0; | |
80 | |
81 // Gets the current microphone level, as a value between 0 and 10. | 75 // Gets the current microphone level, as a value between 0 and 10. |
82 virtual int GetInputLevel() = 0; | 76 virtual int GetInputLevel() = 0; |
83 | 77 |
84 virtual const std::vector<AudioCodec>& audio_codecs() = 0; | 78 virtual const std::vector<AudioCodec>& audio_codecs() = 0; |
85 virtual RtpCapabilities GetAudioCapabilities() = 0; | 79 virtual RtpCapabilities GetAudioCapabilities() = 0; |
86 virtual const std::vector<VideoCodec>& video_codecs() = 0; | 80 virtual const std::vector<VideoCodec>& video_codecs() = 0; |
87 virtual RtpCapabilities GetVideoCapabilities() = 0; | 81 virtual RtpCapabilities GetVideoCapabilities() = 0; |
88 | 82 |
89 // Starts AEC dump using existing file, a maximum file size in bytes can be | 83 // Starts AEC dump using existing file, a maximum file size in bytes can be |
90 // specified. Logging is stopped just before the size limit is exceeded. | 84 // specified. Logging is stopped just before the size limit is exceeded. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 const MediaConfig& config, | 140 const MediaConfig& config, |
147 const AudioOptions& options) { | 141 const AudioOptions& options) { |
148 return voice_.CreateChannel(call, config, options); | 142 return voice_.CreateChannel(call, config, options); |
149 } | 143 } |
150 virtual VideoMediaChannel* CreateVideoChannel(webrtc::Call* call, | 144 virtual VideoMediaChannel* CreateVideoChannel(webrtc::Call* call, |
151 const MediaConfig& config, | 145 const MediaConfig& config, |
152 const VideoOptions& options) { | 146 const VideoOptions& options) { |
153 return video_.CreateChannel(call, config, options); | 147 return video_.CreateChannel(call, config, options); |
154 } | 148 } |
155 | 149 |
156 virtual bool GetOutputVolume(int* level) { | |
157 return voice_.GetOutputVolume(level); | |
158 } | |
159 virtual bool SetOutputVolume(int level) { | |
160 return voice_.SetOutputVolume(level); | |
161 } | |
162 | |
163 virtual int GetInputLevel() { | 150 virtual int GetInputLevel() { |
164 return voice_.GetInputLevel(); | 151 return voice_.GetInputLevel(); |
165 } | 152 } |
166 virtual const std::vector<AudioCodec>& audio_codecs() { | 153 virtual const std::vector<AudioCodec>& audio_codecs() { |
167 return voice_.codecs(); | 154 return voice_.codecs(); |
168 } | 155 } |
169 virtual RtpCapabilities GetAudioCapabilities() { | 156 virtual RtpCapabilities GetAudioCapabilities() { |
170 return voice_.GetCapabilities(); | 157 return voice_.GetCapabilities(); |
171 } | 158 } |
172 virtual const std::vector<VideoCodec>& video_codecs() { | 159 virtual const std::vector<VideoCodec>& video_codecs() { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 virtual ~DataEngineInterface() {} | 194 virtual ~DataEngineInterface() {} |
208 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; | 195 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; |
209 virtual const std::vector<DataCodec>& data_codecs() = 0; | 196 virtual const std::vector<DataCodec>& data_codecs() = 0; |
210 }; | 197 }; |
211 | 198 |
212 webrtc::RtpParameters CreateRtpParametersWithOneEncoding(); | 199 webrtc::RtpParameters CreateRtpParametersWithOneEncoding(); |
213 | 200 |
214 } // namespace cricket | 201 } // namespace cricket |
215 | 202 |
216 #endif // WEBRTC_MEDIA_BASE_MEDIAENGINE_H_ | 203 #endif // WEBRTC_MEDIA_BASE_MEDIAENGINE_H_ |
OLD | NEW |