| OLD | NEW |
| 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 int stopPosition, | 238 int stopPosition, |
| 239 const CodecInst* codecInst); | 239 const CodecInst* codecInst); |
| 240 int StopPlayingFileAsMicrophone(); | 240 int StopPlayingFileAsMicrophone(); |
| 241 int IsPlayingFileAsMicrophone() const; | 241 int IsPlayingFileAsMicrophone() const; |
| 242 int StartRecordingPlayout(const char* fileName, const CodecInst* codecInst); | 242 int StartRecordingPlayout(const char* fileName, const CodecInst* codecInst); |
| 243 int StartRecordingPlayout(OutStream* stream, const CodecInst* codecInst); | 243 int StartRecordingPlayout(OutStream* stream, const CodecInst* codecInst); |
| 244 int StopRecordingPlayout(); | 244 int StopRecordingPlayout(); |
| 245 | 245 |
| 246 void SetMixWithMicStatus(bool mix); | 246 void SetMixWithMicStatus(bool mix); |
| 247 | 247 |
| 248 // VoEVolumeControl | 248 // Muting, Volume and Level. |
| 249 int GetSpeechOutputLevel(uint32_t& level) const; | 249 void SetInputMute(bool enable); |
| 250 int GetSpeechOutputLevelFullRange(uint32_t& level) const; | 250 void SetChannelOutputVolumeScaling(float scaling); |
| 251 int SetInputMute(bool enable); | 251 int GetSpeechOutputLevel() const; |
| 252 bool InputMute() const; | 252 int GetSpeechOutputLevelFullRange() const; |
| 253 int SetOutputVolumePan(float left, float right); | |
| 254 int GetOutputVolumePan(float& left, float& right) const; | |
| 255 int SetChannelOutputVolumeScaling(float scaling); | |
| 256 int GetChannelOutputVolumeScaling(float& scaling) const; | |
| 257 | 253 |
| 258 // VoENetEqStats | 254 // VoENetEqStats |
| 259 int GetNetworkStatistics(NetworkStatistics& stats); | 255 int GetNetworkStatistics(NetworkStatistics& stats); |
| 260 void GetDecodingCallStatistics(AudioDecodingCallStats* stats) const; | 256 void GetDecodingCallStatistics(AudioDecodingCallStats* stats) const; |
| 261 | 257 |
| 262 // Audio+Video Sync | 258 // Audio+Video Sync |
| 263 uint32_t GetDelayEstimate() const; | 259 uint32_t GetDelayEstimate() const; |
| 264 int SetMinimumPlayoutDelay(int delayMs); | 260 int SetMinimumPlayoutDelay(int delayMs); |
| 265 int GetPlayoutTimestamp(unsigned int& timestamp); | 261 int GetPlayoutTimestamp(unsigned int& timestamp); |
| 266 int GetRtpRtcp(RtpRtcp** rtpRtcpModule, RtpReceiver** rtp_receiver) const; | 262 int GetRtpRtcp(RtpRtcp** rtpRtcpModule, RtpReceiver** rtp_receiver) const; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 void SetRtcpRttStats(RtcpRttStats* rtcp_rtt_stats); | 381 void SetRtcpRttStats(RtcpRttStats* rtcp_rtt_stats); |
| 386 void SetTransportOverhead(size_t transport_overhead_per_packet); | 382 void SetTransportOverhead(size_t transport_overhead_per_packet); |
| 387 | 383 |
| 388 // From OverheadObserver in the RTP/RTCP module | 384 // From OverheadObserver in the RTP/RTCP module |
| 389 void OnOverheadChanged(size_t overhead_bytes_per_packet) override; | 385 void OnOverheadChanged(size_t overhead_bytes_per_packet) override; |
| 390 | 386 |
| 391 protected: | 387 protected: |
| 392 void OnIncomingFractionLoss(int fraction_lost); | 388 void OnIncomingFractionLoss(int fraction_lost); |
| 393 | 389 |
| 394 private: | 390 private: |
| 391 bool InputMute() const; |
| 395 bool OnRtpPacketWithHeader(const uint8_t* received_packet, | 392 bool OnRtpPacketWithHeader(const uint8_t* received_packet, |
| 396 size_t length, | 393 size_t length, |
| 397 RTPHeader *header); | 394 RTPHeader *header); |
| 398 bool ReceivePacket(const uint8_t* packet, | 395 bool ReceivePacket(const uint8_t* packet, |
| 399 size_t packet_length, | 396 size_t packet_length, |
| 400 const RTPHeader& header, | 397 const RTPHeader& header, |
| 401 bool in_order); | 398 bool in_order); |
| 402 bool HandleRtxPacket(const uint8_t* packet, | 399 bool HandleRtxPacket(const uint8_t* packet, |
| 403 size_t packet_length, | 400 size_t packet_length, |
| 404 const RTPHeader& header); | 401 const RTPHeader& header); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 // uses | 473 // uses |
| 477 Statistics* _engineStatisticsPtr; | 474 Statistics* _engineStatisticsPtr; |
| 478 OutputMixer* _outputMixerPtr; | 475 OutputMixer* _outputMixerPtr; |
| 479 ProcessThread* _moduleProcessThreadPtr; | 476 ProcessThread* _moduleProcessThreadPtr; |
| 480 AudioDeviceModule* _audioDeviceModulePtr; | 477 AudioDeviceModule* _audioDeviceModulePtr; |
| 481 VoiceEngineObserver* _voiceEngineObserverPtr; // owned by base | 478 VoiceEngineObserver* _voiceEngineObserverPtr; // owned by base |
| 482 rtc::CriticalSection* _callbackCritSectPtr; // owned by base | 479 rtc::CriticalSection* _callbackCritSectPtr; // owned by base |
| 483 Transport* _transportPtr; // WebRtc socket or external transport | 480 Transport* _transportPtr; // WebRtc socket or external transport |
| 484 RmsLevel rms_level_; | 481 RmsLevel rms_level_; |
| 485 int32_t _sendFrameType; // Send data is voice, 1-voice, 0-otherwise | 482 int32_t _sendFrameType; // Send data is voice, 1-voice, 0-otherwise |
| 483 bool input_mute_ GUARDED_BY(volume_settings_critsect_); |
| 484 bool previous_frame_muted_; // Only accessed from PrepareEncodeAndSend(). |
| 485 float _outputGain GUARDED_BY(volume_settings_critsect_); |
| 486 // VoEBase | 486 // VoEBase |
| 487 bool _mixFileWithMicrophone; | 487 bool _mixFileWithMicrophone; |
| 488 // VoEVolumeControl | |
| 489 bool input_mute_ GUARDED_BY(volume_settings_critsect_); | |
| 490 bool previous_frame_muted_; // Only accessed from PrepareEncodeAndSend(). | |
| 491 float _panLeft GUARDED_BY(volume_settings_critsect_); | |
| 492 float _panRight GUARDED_BY(volume_settings_critsect_); | |
| 493 float _outputGain GUARDED_BY(volume_settings_critsect_); | |
| 494 // VoeRTP_RTCP | 488 // VoeRTP_RTCP |
| 495 uint32_t _lastLocalTimeStamp; | 489 uint32_t _lastLocalTimeStamp; |
| 496 int8_t _lastPayloadType; | 490 int8_t _lastPayloadType; |
| 497 bool _includeAudioLevelIndication; | 491 bool _includeAudioLevelIndication; |
| 498 size_t transport_overhead_per_packet_ GUARDED_BY(overhead_per_packet_lock_); | 492 size_t transport_overhead_per_packet_ GUARDED_BY(overhead_per_packet_lock_); |
| 499 size_t rtp_overhead_per_packet_ GUARDED_BY(overhead_per_packet_lock_); | 493 size_t rtp_overhead_per_packet_ GUARDED_BY(overhead_per_packet_lock_); |
| 500 rtc::CriticalSection overhead_per_packet_lock_; | 494 rtc::CriticalSection overhead_per_packet_lock_; |
| 501 // VoENetwork | 495 // VoENetwork |
| 502 AudioFrame::SpeechType _outputSpeechType; | 496 AudioFrame::SpeechType _outputSpeechType; |
| 503 // VoEVideoSync | 497 // VoEVideoSync |
| (...skipping 14 matching lines...) Expand all Loading... |
| 518 std::unique_ptr<RateLimiter> retransmission_rate_limiter_; | 512 std::unique_ptr<RateLimiter> retransmission_rate_limiter_; |
| 519 | 513 |
| 520 // TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed. | 514 // TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed. |
| 521 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; | 515 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; |
| 522 }; | 516 }; |
| 523 | 517 |
| 524 } // namespace voe | 518 } // namespace voe |
| 525 } // namespace webrtc | 519 } // namespace webrtc |
| 526 | 520 |
| 527 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ | 521 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_H_ |
| OLD | NEW |