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

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

Issue 2986793002: Remove deprecated RtpRtcp::SetAudioPacketSize (Closed)
Patch Set: Created 3 years, 5 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/modules/rtp_rtcp/source/rtp_sender.h ('k') | no next file » | 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) 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 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1125 // Audio. 1125 // Audio.
1126 int32_t RTPSender::SendTelephoneEvent(uint8_t key, 1126 int32_t RTPSender::SendTelephoneEvent(uint8_t key,
1127 uint16_t time_ms, 1127 uint16_t time_ms,
1128 uint8_t level) { 1128 uint8_t level) {
1129 if (!audio_configured_) { 1129 if (!audio_configured_) {
1130 return -1; 1130 return -1;
1131 } 1131 }
1132 return audio_->SendTelephoneEvent(key, time_ms, level); 1132 return audio_->SendTelephoneEvent(key, time_ms, level);
1133 } 1133 }
1134 1134
1135 int32_t RTPSender::SetAudioPacketSize(uint16_t packet_size_samples) {
1136 if (!audio_configured_) {
1137 return -1;
1138 }
1139 return 0;
1140 }
1141
1142 int32_t RTPSender::SetAudioLevel(uint8_t level_d_bov) { 1135 int32_t RTPSender::SetAudioLevel(uint8_t level_d_bov) {
1143 return audio_->SetAudioLevel(level_d_bov); 1136 return audio_->SetAudioLevel(level_d_bov);
1144 } 1137 }
1145 1138
1146 RtpVideoCodecTypes RTPSender::VideoCodecType() const { 1139 RtpVideoCodecTypes RTPSender::VideoCodecType() const {
1147 assert(!audio_configured_ && "Sender is an audio stream!"); 1140 assert(!audio_configured_ && "Sender is an audio stream!");
1148 return video_->VideoCodecType(); 1141 return video_->VideoCodecType();
1149 } 1142 }
1150 1143
1151 void RTPSender::SetUlpfecConfig(int red_payload_type, int ulpfec_payload_type) { 1144 void RTPSender::SetUlpfecConfig(int red_payload_type, int ulpfec_payload_type) {
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
1303 rtc::CritScope lock(&send_critsect_); 1296 rtc::CritScope lock(&send_critsect_);
1304 packet->SetTimestamp(last_rtp_timestamp_); 1297 packet->SetTimestamp(last_rtp_timestamp_);
1305 packet->set_capture_time_ms(capture_time_ms_); 1298 packet->set_capture_time_ms(capture_time_ms_);
1306 } 1299 }
1307 AssignSequenceNumber(packet.get()); 1300 AssignSequenceNumber(packet.get());
1308 SendToNetwork(std::move(packet), StorageType::kDontRetransmit, 1301 SendToNetwork(std::move(packet), StorageType::kDontRetransmit,
1309 RtpPacketSender::Priority::kLowPriority); 1302 RtpPacketSender::Priority::kLowPriority);
1310 } 1303 }
1311 1304
1312 } // namespace webrtc 1305 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_sender.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698