Chromium Code Reviews| Index: webrtc/api/call/audio_send_stream.h |
| diff --git a/webrtc/api/call/audio_send_stream.h b/webrtc/api/call/audio_send_stream.h |
| index b309f7a221c6c07298f0a13133dfbb2389a5b746..3b9f8c76e45411f8a2f01ba3cbcbb94aa1a7080e 100644 |
| --- a/webrtc/api/call/audio_send_stream.h |
| +++ b/webrtc/api/call/audio_send_stream.h |
| @@ -94,6 +94,61 @@ class AudioSendStream { |
| // Note: This is still an experimental feature and not ready for real usage. |
| int min_bitrate_kbps = -1; |
| int max_bitrate_kbps = -1; |
| + |
| + int max_send_bitrate_bps = 0; |
|
the sun
2016/10/13 13:15:05
is it possible to use the field above - max_bitrat
minyue-webrtc
2016/10/14 13:32:56
left over, to remove
|
| + |
| + struct SendCodecSpec { |
| + SendCodecSpec() { |
| + webrtc::CodecInst empty_inst = {0}; |
| + codec_inst = empty_inst; |
| + codec_inst.pltype = -1; |
| + } |
| + bool operator==(const SendCodecSpec& rhs) const { |
| + { |
| + if (nack_enabled != rhs.nack_enabled) { |
| + return false; |
| + } |
| + if (transport_cc_enabled != rhs.transport_cc_enabled) { |
| + return false; |
| + } |
| + if (enable_codec_fec != rhs.enable_codec_fec) { |
| + return false; |
| + } |
| + if (enable_opus_dtx != rhs.enable_opus_dtx) { |
| + return false; |
| + } |
| + if (opus_max_playback_rate != rhs.opus_max_playback_rate) { |
| + return false; |
| + } |
| + if (red_payload_type != rhs.red_payload_type) { |
|
the sun
2016/10/13 13:15:05
I don't think this is used anymore
minyue-webrtc
2016/10/14 13:32:56
ok. but, it may be out of the scope of this CL.
|
| + return false; |
| + } |
| + if (cng_payload_type != rhs.cng_payload_type) { |
| + return false; |
| + } |
| + if (cng_plfreq != rhs.cng_plfreq) { |
| + return false; |
| + } |
| + if (codec_inst != rhs.codec_inst) { |
| + return false; |
| + } |
| + return true; |
| + } |
| + } |
| + bool operator!=(const SendCodecSpec& rhs) const { |
| + return !(*this == rhs); |
| + } |
| + |
| + bool nack_enabled = false; |
| + bool transport_cc_enabled = false; |
| + bool enable_codec_fec = false; |
| + bool enable_opus_dtx = false; |
| + int opus_max_playback_rate = 0; |
| + int red_payload_type = -1; |
| + int cng_payload_type = -1; |
| + int cng_plfreq = -1; |
|
the sun
2016/10/13 13:15:05
expand to cng_payload_freq
minyue-webrtc
2016/10/14 13:32:56
ok. but, it may be out of the scope of this CL.
|
| + webrtc::CodecInst codec_inst; |
| + } send_codec_spec; |
| }; |
| // Starts stream activity. |