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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_sender.cc

Issue 2545753002: Deprecated SetAudioPacketSize from RTPSender and removed calls to it. (Closed)
Patch Set: constexpr; parentheses Created 4 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 if (!audio_configured_) { 1146 if (!audio_configured_) {
1147 return -1; 1147 return -1;
1148 } 1148 }
1149 return audio_->SendTelephoneEvent(key, time_ms, level); 1149 return audio_->SendTelephoneEvent(key, time_ms, level);
1150 } 1150 }
1151 1151
1152 int32_t RTPSender::SetAudioPacketSize(uint16_t packet_size_samples) { 1152 int32_t RTPSender::SetAudioPacketSize(uint16_t packet_size_samples) {
1153 if (!audio_configured_) { 1153 if (!audio_configured_) {
1154 return -1; 1154 return -1;
1155 } 1155 }
1156 return audio_->SetAudioPacketSize(packet_size_samples); 1156 return 0;
1157 } 1157 }
1158 1158
1159 int32_t RTPSender::SetAudioLevel(uint8_t level_d_bov) { 1159 int32_t RTPSender::SetAudioLevel(uint8_t level_d_bov) {
1160 return audio_->SetAudioLevel(level_d_bov); 1160 return audio_->SetAudioLevel(level_d_bov);
1161 } 1161 }
1162 1162
1163 RtpVideoCodecTypes RTPSender::VideoCodecType() const { 1163 RtpVideoCodecTypes RTPSender::VideoCodecType() const {
1164 assert(!audio_configured_ && "Sender is an audio stream!"); 1164 assert(!audio_configured_ && "Sender is an audio stream!");
1165 return video_->VideoCodecType(); 1165 return video_->VideoCodecType();
1166 } 1166 }
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1317 return; 1317 return;
1318 } 1318 }
1319 rtp_overhead_bytes_per_packet_ = packet.headers_size(); 1319 rtp_overhead_bytes_per_packet_ = packet.headers_size();
1320 overhead_bytes_per_packet = 1320 overhead_bytes_per_packet =
1321 rtp_overhead_bytes_per_packet_ + transport_overhead_bytes_per_packet_; 1321 rtp_overhead_bytes_per_packet_ + transport_overhead_bytes_per_packet_;
1322 } 1322 }
1323 overhead_observer_->OnOverheadChanged(overhead_bytes_per_packet); 1323 overhead_observer_->OnOverheadChanged(overhead_bytes_per_packet);
1324 } 1324 }
1325 1325
1326 } // namespace webrtc 1326 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_sender.h ('k') | webrtc/modules/rtp_rtcp/source/rtp_sender_audio.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698