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

Side by Side Diff: webrtc/voice_engine/channel.h

Issue 2644303002: Delete class SSRCDatabase, and its global ssrc registry. (Closed)
Patch Set: DCHECK that ssrc is set in SendOutgoingData. Created 3 years, 10 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
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
11 #ifndef WEBRTC_VOICE_ENGINE_CHANNEL_H_ 11 #ifndef WEBRTC_VOICE_ENGINE_CHANNEL_H_
12 #define WEBRTC_VOICE_ENGINE_CHANNEL_H_ 12 #define WEBRTC_VOICE_ENGINE_CHANNEL_H_
13 13
14 #include <memory> 14 #include <memory>
15 15
16 #include "webrtc/api/audio/audio_mixer.h" 16 #include "webrtc/api/audio/audio_mixer.h"
17 #include "webrtc/api/call/audio_sink.h" 17 #include "webrtc/api/call/audio_sink.h"
18 #include "webrtc/base/criticalsection.h" 18 #include "webrtc/base/criticalsection.h"
19 #include "webrtc/base/optional.h" 19 #include "webrtc/base/optional.h"
20 #include "webrtc/base/random.h"
21 #include "webrtc/base/timeutils.h"
20 #include "webrtc/common_audio/resampler/include/push_resampler.h" 22 #include "webrtc/common_audio/resampler/include/push_resampler.h"
21 #include "webrtc/common_types.h" 23 #include "webrtc/common_types.h"
22 #include "webrtc/modules/audio_coding/acm2/codec_manager.h" 24 #include "webrtc/modules/audio_coding/acm2/codec_manager.h"
23 #include "webrtc/modules/audio_coding/acm2/rent_a_codec.h" 25 #include "webrtc/modules/audio_coding/acm2/rent_a_codec.h"
24 #include "webrtc/modules/audio_coding/include/audio_coding_module.h" 26 #include "webrtc/modules/audio_coding/include/audio_coding_module.h"
25 #include "webrtc/modules/audio_conference_mixer/include/audio_conference_mixer_d efines.h" 27 #include "webrtc/modules/audio_conference_mixer/include/audio_conference_mixer_d efines.h"
26 #include "webrtc/modules/audio_processing/rms_level.h" 28 #include "webrtc/modules/audio_processing/rms_level.h"
27 #include "webrtc/modules/rtp_rtcp/include/remote_ntp_time_estimator.h" 29 #include "webrtc/modules/rtp_rtcp/include/remote_ntp_time_estimator.h"
28 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" 30 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h"
29 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" 31 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h"
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 bool previous_frame_muted_; // Only accessed from PrepareEncodeAndSend(). 513 bool previous_frame_muted_; // Only accessed from PrepareEncodeAndSend().
512 float _panLeft GUARDED_BY(volume_settings_critsect_); 514 float _panLeft GUARDED_BY(volume_settings_critsect_);
513 float _panRight GUARDED_BY(volume_settings_critsect_); 515 float _panRight GUARDED_BY(volume_settings_critsect_);
514 float _outputGain GUARDED_BY(volume_settings_critsect_); 516 float _outputGain GUARDED_BY(volume_settings_critsect_);
515 // VoeRTP_RTCP 517 // VoeRTP_RTCP
516 uint32_t _lastLocalTimeStamp; 518 uint32_t _lastLocalTimeStamp;
517 int8_t _lastPayloadType; 519 int8_t _lastPayloadType;
518 bool _includeAudioLevelIndication; 520 bool _includeAudioLevelIndication;
519 size_t transport_overhead_per_packet_; 521 size_t transport_overhead_per_packet_;
520 size_t rtp_overhead_per_packet_; 522 size_t rtp_overhead_per_packet_;
523 // For generation of random ssrc:s.
524 webrtc::Random random_;
the sun 2017/02/16 12:34:16 You're only using this member in the ctor, why do
nisse-webrtc 2017/02/16 12:58:16 Good catch. I think I originally put it in the Cha
521 // VoENetwork 525 // VoENetwork
522 AudioFrame::SpeechType _outputSpeechType; 526 AudioFrame::SpeechType _outputSpeechType;
523 // VoEVideoSync 527 // VoEVideoSync
524 rtc::CriticalSection video_sync_lock_; 528 rtc::CriticalSection video_sync_lock_;
525 // VoEAudioProcessing 529 // VoEAudioProcessing
526 bool restored_packet_in_use_; 530 bool restored_packet_in_use_;
527 // RtcpBandwidthObserver 531 // RtcpBandwidthObserver
528 std::unique_ptr<VoERtcpObserver> rtcp_observer_; 532 std::unique_ptr<VoERtcpObserver> rtcp_observer_;
529 // An associated send channel. 533 // An associated send channel.
530 rtc::CriticalSection assoc_send_channel_lock_; 534 rtc::CriticalSection assoc_send_channel_lock_;
531 ChannelOwner associate_send_channel_ GUARDED_BY(assoc_send_channel_lock_); 535 ChannelOwner associate_send_channel_ GUARDED_BY(assoc_send_channel_lock_);
532 536
533 bool pacing_enabled_; 537 bool pacing_enabled_;
534 PacketRouter* packet_router_ = nullptr; 538 PacketRouter* packet_router_ = nullptr;
535 std::unique_ptr<TransportFeedbackProxy> feedback_observer_proxy_; 539 std::unique_ptr<TransportFeedbackProxy> feedback_observer_proxy_;
536 std::unique_ptr<TransportSequenceNumberProxy> seq_num_allocator_proxy_; 540 std::unique_ptr<TransportSequenceNumberProxy> seq_num_allocator_proxy_;
537 std::unique_ptr<RtpPacketSenderProxy> rtp_packet_sender_proxy_; 541 std::unique_ptr<RtpPacketSenderProxy> rtp_packet_sender_proxy_;
538 std::unique_ptr<RateLimiter> retransmission_rate_limiter_; 542 std::unique_ptr<RateLimiter> retransmission_rate_limiter_;
539 543
540 // TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed. 544 // TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed.
541 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; 545 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_;
542 }; 546 };
543 547
544 } // namespace voe 548 } // namespace voe
545 } // namespace webrtc 549 } // namespace webrtc
546 550
547 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ 551 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698