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

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

Issue 1236023010: In PeerConnectionTestWrapper, put audio input on a separate thread. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Use "nullptr" instead of "NULL" Created 5 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 | « talk/app/webrtc/test/peerconnectiontestwrapper.cc ('k') | webrtc/voice_engine/channel.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) 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 int SetChannelOutputVolumeScaling(float scaling); 267 int SetChannelOutputVolumeScaling(float scaling);
268 int GetChannelOutputVolumeScaling(float& scaling) const; 268 int GetChannelOutputVolumeScaling(float& scaling) const;
269 269
270 // VoENetEqStats 270 // VoENetEqStats
271 int GetNetworkStatistics(NetworkStatistics& stats); 271 int GetNetworkStatistics(NetworkStatistics& stats);
272 void GetDecodingCallStatistics(AudioDecodingCallStats* stats) const; 272 void GetDecodingCallStatistics(AudioDecodingCallStats* stats) const;
273 273
274 // VoEVideoSync 274 // VoEVideoSync
275 bool GetDelayEstimate(int* jitter_buffer_delay_ms, 275 bool GetDelayEstimate(int* jitter_buffer_delay_ms,
276 int* playout_buffer_delay_ms) const; 276 int* playout_buffer_delay_ms) const;
277 int least_required_delay_ms() const { return least_required_delay_ms_; } 277 int least_required_delay_ms() const {
278 CriticalSectionScoped cs(&video_sync_critsect_);
pthatcher1 2015/07/24 09:04:09 Can you put these in a separate CL and have Tina's
279 return least_required_delay_ms_;
280 }
278 int SetInitialPlayoutDelay(int delay_ms); 281 int SetInitialPlayoutDelay(int delay_ms);
279 int SetMinimumPlayoutDelay(int delayMs); 282 int SetMinimumPlayoutDelay(int delayMs);
280 int GetPlayoutTimestamp(unsigned int& timestamp); 283 int GetPlayoutTimestamp(unsigned int& timestamp);
281 void UpdatePlayoutTimestamp(bool rtcp); 284 void UpdatePlayoutTimestamp(bool rtcp);
282 int SetInitTimestamp(unsigned int timestamp); 285 int SetInitTimestamp(unsigned int timestamp);
283 int SetInitSequenceNumber(short sequenceNumber); 286 int SetInitSequenceNumber(short sequenceNumber);
284 287
285 // VoEVideoSyncExtended 288 // VoEVideoSyncExtended
286 int GetRtpRtcp(RtpRtcp** rtpRtcpModule, RtpReceiver** rtp_receiver) const; 289 int GetRtpRtcp(RtpRtcp** rtpRtcpModule, RtpReceiver** rtp_receiver) const;
287 290
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 int SetRedPayloadType(int red_payload_type); 474 int SetRedPayloadType(int red_payload_type);
472 int SetSendRtpHeaderExtension(bool enable, RTPExtensionType type, 475 int SetSendRtpHeaderExtension(bool enable, RTPExtensionType type,
473 unsigned char id); 476 unsigned char id);
474 477
475 int32_t GetPlayoutFrequency(); 478 int32_t GetPlayoutFrequency();
476 int64_t GetRTT(bool allow_associate_channel) const; 479 int64_t GetRTT(bool allow_associate_channel) const;
477 480
478 CriticalSectionWrapper& _fileCritSect; 481 CriticalSectionWrapper& _fileCritSect;
479 CriticalSectionWrapper& _callbackCritSect; 482 CriticalSectionWrapper& _callbackCritSect;
480 CriticalSectionWrapper& volume_settings_critsect_; 483 CriticalSectionWrapper& volume_settings_critsect_;
484 CriticalSectionWrapper& video_sync_critsect_;
481 uint32_t _instanceId; 485 uint32_t _instanceId;
482 int32_t _channelId; 486 int32_t _channelId;
483 487
484 ChannelState channel_state_; 488 ChannelState channel_state_;
485 489
486 rtc::scoped_ptr<RtpHeaderParser> rtp_header_parser_; 490 rtc::scoped_ptr<RtpHeaderParser> rtp_header_parser_;
487 rtc::scoped_ptr<RTPPayloadRegistry> rtp_payload_registry_; 491 rtc::scoped_ptr<RTPPayloadRegistry> rtp_payload_registry_;
488 rtc::scoped_ptr<ReceiveStatistics> rtp_receive_statistics_; 492 rtc::scoped_ptr<ReceiveStatistics> rtp_receive_statistics_;
489 rtc::scoped_ptr<StatisticsProxy> statistics_proxy_; 493 rtc::scoped_ptr<StatisticsProxy> statistics_proxy_;
490 rtc::scoped_ptr<RtpReceiver> rtp_receiver_; 494 rtc::scoped_ptr<RtpReceiver> rtp_receiver_;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 rtc::scoped_ptr<NetworkPredictor> network_predictor_; 582 rtc::scoped_ptr<NetworkPredictor> network_predictor_;
579 // An associated send channel. 583 // An associated send channel.
580 rtc::scoped_ptr<CriticalSectionWrapper> assoc_send_channel_lock_; 584 rtc::scoped_ptr<CriticalSectionWrapper> assoc_send_channel_lock_;
581 ChannelOwner associate_send_channel_ GUARDED_BY(assoc_send_channel_lock_); 585 ChannelOwner associate_send_channel_ GUARDED_BY(assoc_send_channel_lock_);
582 }; 586 };
583 587
584 } // namespace voe 588 } // namespace voe
585 } // namespace webrtc 589 } // namespace webrtc
586 590
587 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ 591 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_
OLDNEW
« no previous file with comments | « talk/app/webrtc/test/peerconnectiontestwrapper.cc ('k') | webrtc/voice_engine/channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698