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

Side by Side Diff: webrtc/media/engine/webrtcvoiceengine.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/mediaengine.h ('k') | webrtc/media/engine/webrtcvoiceengine.cc » ('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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 rtc::scoped_refptr<webrtc::AudioState> GetAudioState() const; 54 rtc::scoped_refptr<webrtc::AudioState> GetAudioState() const;
55 VoiceMediaChannel* CreateChannel(webrtc::Call* call, 55 VoiceMediaChannel* CreateChannel(webrtc::Call* call,
56 const MediaConfig& config, 56 const MediaConfig& config,
57 const AudioOptions& options); 57 const AudioOptions& options);
58 58
59 bool GetOutputVolume(int* level); 59 bool GetOutputVolume(int* level);
60 bool SetOutputVolume(int level); 60 bool SetOutputVolume(int level);
61 int GetInputLevel(); 61 int GetInputLevel();
62 62
63 const std::vector<AudioCodec>& codecs(); 63 const std::vector<AudioCodec>& send_codecs() const;
64 const std::vector<AudioCodec>& recv_codecs() const;
64 RtpCapabilities GetCapabilities() const; 65 RtpCapabilities GetCapabilities() const;
65 66
66 // For tracking WebRtc channels. Needed because we have to pause them 67 // For tracking WebRtc channels. Needed because we have to pause them
67 // all when switching devices. 68 // all when switching devices.
68 // May only be called by WebRtcVoiceMediaChannel. 69 // May only be called by WebRtcVoiceMediaChannel.
69 void RegisterChannel(WebRtcVoiceMediaChannel* channel); 70 void RegisterChannel(WebRtcVoiceMediaChannel* channel);
70 void UnregisterChannel(WebRtcVoiceMediaChannel* channel); 71 void UnregisterChannel(WebRtcVoiceMediaChannel* channel);
71 72
72 // Called by WebRtcVoiceMediaChannel to set a gain offset from 73 // Called by WebRtcVoiceMediaChannel to set a gain offset from
73 // the default AGC target level. 74 // the default AGC target level.
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 int cng_payload_type = -1; 287 int cng_payload_type = -1;
287 int cng_plfreq = -1; 288 int cng_plfreq = -1;
288 webrtc::CodecInst codec_inst; 289 webrtc::CodecInst codec_inst;
289 } send_codec_spec_; 290 } send_codec_spec_;
290 291
291 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); 292 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel);
292 }; 293 };
293 } // namespace cricket 294 } // namespace cricket
294 295
295 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ 296 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_
OLDNEW
« no previous file with comments | « webrtc/media/base/mediaengine.h ('k') | webrtc/media/engine/webrtcvoiceengine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698