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

Side by Side Diff: webrtc/media/base/mediaengine.h

Issue 2013053002: Support for two audio codec lists down into WebRtcVoiceEngine. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@asymmetric-audio-codec-support
Patch Set: Replaced MergeSendRecvCodecs with NegotiateCodecs. Created 4 years, 6 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
« no previous file with comments | « webrtc/media/base/fakemediaengine.h ('k') | webrtc/media/engine/webrtcvoiceengine.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 // Device configuration 74 // Device configuration
75 // Gets the current speaker volume, as a value between 0 and 255. 75 // Gets the current speaker volume, as a value between 0 and 255.
76 virtual bool GetOutputVolume(int* level) = 0; 76 virtual bool GetOutputVolume(int* level) = 0;
77 // Sets the current speaker volume, as a value between 0 and 255. 77 // Sets the current speaker volume, as a value between 0 and 255.
78 virtual bool SetOutputVolume(int level) = 0; 78 virtual bool SetOutputVolume(int level) = 0;
79 79
80 // Gets the current microphone level, as a value between 0 and 10. 80 // Gets the current microphone level, as a value between 0 and 10.
81 virtual int GetInputLevel() = 0; 81 virtual int GetInputLevel() = 0;
82 82
83 virtual const std::vector<AudioCodec>& audio_codecs() = 0; 83 virtual const std::vector<AudioCodec>& audio_send_codecs() = 0;
84 virtual const std::vector<AudioCodec>& audio_recv_codecs() = 0;
84 virtual RtpCapabilities GetAudioCapabilities() = 0; 85 virtual RtpCapabilities GetAudioCapabilities() = 0;
85 virtual const std::vector<VideoCodec>& video_codecs() = 0; 86 virtual const std::vector<VideoCodec>& video_codecs() = 0;
86 virtual RtpCapabilities GetVideoCapabilities() = 0; 87 virtual RtpCapabilities GetVideoCapabilities() = 0;
87 88
88 // Starts AEC dump using existing file, a maximum file size in bytes can be 89 // Starts AEC dump using existing file, a maximum file size in bytes can be
89 // specified. Logging is stopped just before the size limit is exceeded. 90 // specified. Logging is stopped just before the size limit is exceeded.
90 // If max_size_bytes is set to a value <= 0, no limit will be used. 91 // If max_size_bytes is set to a value <= 0, no limit will be used.
91 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) = 0; 92 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) = 0;
92 93
93 // Stops recording AEC dump. 94 // Stops recording AEC dump.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 virtual bool GetOutputVolume(int* level) { 149 virtual bool GetOutputVolume(int* level) {
149 return voice_.GetOutputVolume(level); 150 return voice_.GetOutputVolume(level);
150 } 151 }
151 virtual bool SetOutputVolume(int level) { 152 virtual bool SetOutputVolume(int level) {
152 return voice_.SetOutputVolume(level); 153 return voice_.SetOutputVolume(level);
153 } 154 }
154 155
155 virtual int GetInputLevel() { 156 virtual int GetInputLevel() {
156 return voice_.GetInputLevel(); 157 return voice_.GetInputLevel();
157 } 158 }
158 virtual const std::vector<AudioCodec>& audio_codecs() { 159 virtual const std::vector<AudioCodec>& audio_send_codecs() {
159 return voice_.codecs(); 160 return voice_.send_codecs();
161 }
162 virtual const std::vector<AudioCodec>& audio_recv_codecs() {
163 return voice_.recv_codecs();
160 } 164 }
161 virtual RtpCapabilities GetAudioCapabilities() { 165 virtual RtpCapabilities GetAudioCapabilities() {
162 return voice_.GetCapabilities(); 166 return voice_.GetCapabilities();
163 } 167 }
164 virtual const std::vector<VideoCodec>& video_codecs() { 168 virtual const std::vector<VideoCodec>& video_codecs() {
165 return video_.codecs(); 169 return video_.codecs();
166 } 170 }
167 virtual RtpCapabilities GetVideoCapabilities() { 171 virtual RtpCapabilities GetVideoCapabilities() {
168 return video_.GetCapabilities(); 172 return video_.GetCapabilities();
169 } 173 }
(...skipping 28 matching lines...) Expand all
198 virtual ~DataEngineInterface() {} 202 virtual ~DataEngineInterface() {}
199 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; 203 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0;
200 virtual const std::vector<DataCodec>& data_codecs() = 0; 204 virtual const std::vector<DataCodec>& data_codecs() = 0;
201 }; 205 };
202 206
203 webrtc::RtpParameters CreateRtpParametersWithOneEncoding(); 207 webrtc::RtpParameters CreateRtpParametersWithOneEncoding();
204 208
205 } // namespace cricket 209 } // namespace cricket
206 210
207 #endif // WEBRTC_MEDIA_BASE_MEDIAENGINE_H_ 211 #endif // WEBRTC_MEDIA_BASE_MEDIAENGINE_H_
OLDNEW
« no previous file with comments | « webrtc/media/base/fakemediaengine.h ('k') | webrtc/media/engine/webrtcvoiceengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698