OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2010 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 } | 291 } |
292 WEBRTC_STUB(StopSend, (int channel)); | 292 WEBRTC_STUB(StopSend, (int channel)); |
293 WEBRTC_STUB(GetVersion, (char version[1024])); | 293 WEBRTC_STUB(GetVersion, (char version[1024])); |
294 WEBRTC_STUB(LastError, ()); | 294 WEBRTC_STUB(LastError, ()); |
295 WEBRTC_FUNC(AssociateSendChannel, (int channel, | 295 WEBRTC_FUNC(AssociateSendChannel, (int channel, |
296 int accociate_send_channel)) { | 296 int accociate_send_channel)) { |
297 WEBRTC_CHECK_CHANNEL(channel); | 297 WEBRTC_CHECK_CHANNEL(channel); |
298 channels_[channel]->associate_send_channel = accociate_send_channel; | 298 channels_[channel]->associate_send_channel = accociate_send_channel; |
299 return 0; | 299 return 0; |
300 } | 300 } |
301 webrtc::RtcEventLog* GetEventLog() override { return nullptr; } | 301 webrtc::RtcEventLog* GetEventLog() { return nullptr; } |
302 | 302 |
303 // webrtc::VoECodec | 303 // webrtc::VoECodec |
304 WEBRTC_STUB(NumOfCodecs, ()); | 304 WEBRTC_STUB(NumOfCodecs, ()); |
305 WEBRTC_STUB(GetCodec, (int index, webrtc::CodecInst& codec)); | 305 WEBRTC_STUB(GetCodec, (int index, webrtc::CodecInst& codec)); |
306 WEBRTC_FUNC(SetSendCodec, (int channel, const webrtc::CodecInst& codec)) { | 306 WEBRTC_FUNC(SetSendCodec, (int channel, const webrtc::CodecInst& codec)) { |
307 WEBRTC_CHECK_CHANNEL(channel); | 307 WEBRTC_CHECK_CHANNEL(channel); |
308 // To match the behavior of the real implementation. | 308 // To match the behavior of the real implementation. |
309 if (_stricmp(codec.plname, "telephone-event") == 0 || | 309 if (_stricmp(codec.plname, "telephone-event") == 0 || |
310 _stricmp(codec.plname, "audio/telephone-event") == 0 || | 310 _stricmp(codec.plname, "audio/telephone-event") == 0 || |
311 _stricmp(codec.plname, "CN") == 0 || | 311 _stricmp(codec.plname, "CN") == 0 || |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 WEBRTC_STUB(GetPlayoutDeviceName, (int i, char* name, char* guid)); | 442 WEBRTC_STUB(GetPlayoutDeviceName, (int i, char* name, char* guid)); |
443 WEBRTC_STUB(SetRecordingDevice, (int, webrtc::StereoChannel)); | 443 WEBRTC_STUB(SetRecordingDevice, (int, webrtc::StereoChannel)); |
444 WEBRTC_STUB(SetPlayoutDevice, (int)); | 444 WEBRTC_STUB(SetPlayoutDevice, (int)); |
445 WEBRTC_STUB(SetAudioDeviceLayer, (webrtc::AudioLayers)); | 445 WEBRTC_STUB(SetAudioDeviceLayer, (webrtc::AudioLayers)); |
446 WEBRTC_STUB(GetAudioDeviceLayer, (webrtc::AudioLayers&)); | 446 WEBRTC_STUB(GetAudioDeviceLayer, (webrtc::AudioLayers&)); |
447 WEBRTC_STUB(SetRecordingSampleRate, (unsigned int samples_per_sec)); | 447 WEBRTC_STUB(SetRecordingSampleRate, (unsigned int samples_per_sec)); |
448 WEBRTC_STUB_CONST(RecordingSampleRate, (unsigned int* samples_per_sec)); | 448 WEBRTC_STUB_CONST(RecordingSampleRate, (unsigned int* samples_per_sec)); |
449 WEBRTC_STUB(SetPlayoutSampleRate, (unsigned int samples_per_sec)); | 449 WEBRTC_STUB(SetPlayoutSampleRate, (unsigned int samples_per_sec)); |
450 WEBRTC_STUB_CONST(PlayoutSampleRate, (unsigned int* samples_per_sec)); | 450 WEBRTC_STUB_CONST(PlayoutSampleRate, (unsigned int* samples_per_sec)); |
451 WEBRTC_STUB(EnableBuiltInAEC, (bool enable)); | 451 WEBRTC_STUB(EnableBuiltInAEC, (bool enable)); |
452 bool BuiltInAECIsAvailable() const override { return false; } | 452 virtual bool BuiltInAECIsAvailable() const { return false; } |
453 WEBRTC_STUB(EnableBuiltInAGC, (bool enable)); | 453 WEBRTC_STUB(EnableBuiltInAGC, (bool enable)); |
454 bool BuiltInAGCIsAvailable() const override { return false; } | 454 virtual bool BuiltInAGCIsAvailable() const { return false; } |
455 WEBRTC_STUB(EnableBuiltInNS, (bool enable)); | 455 WEBRTC_STUB(EnableBuiltInNS, (bool enable)); |
456 bool BuiltInNSIsAvailable() const override { return false; } | 456 virtual bool BuiltInNSIsAvailable() const { return false; } |
457 | 457 |
458 // webrtc::VoENetwork | 458 // webrtc::VoENetwork |
459 WEBRTC_FUNC(RegisterExternalTransport, (int channel, | 459 WEBRTC_FUNC(RegisterExternalTransport, (int channel, |
460 webrtc::Transport& transport)) { | 460 webrtc::Transport& transport)) { |
461 WEBRTC_CHECK_CHANNEL(channel); | 461 WEBRTC_CHECK_CHANNEL(channel); |
462 channels_[channel]->external_transport = true; | 462 channels_[channel]->external_transport = true; |
463 return 0; | 463 return 0; |
464 } | 464 } |
465 WEBRTC_FUNC(DeRegisterExternalTransport, (int channel)) { | 465 WEBRTC_FUNC(DeRegisterExternalTransport, (int channel)) { |
466 WEBRTC_CHECK_CHANNEL(channel); | 466 WEBRTC_CHECK_CHANNEL(channel); |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 enabled = typing_detection_enabled_; | 654 enabled = typing_detection_enabled_; |
655 return 0; | 655 return 0; |
656 } | 656 } |
657 | 657 |
658 WEBRTC_STUB(TimeSinceLastTyping, (int& seconds)); | 658 WEBRTC_STUB(TimeSinceLastTyping, (int& seconds)); |
659 WEBRTC_STUB(SetTypingDetectionParameters, (int timeWindow, | 659 WEBRTC_STUB(SetTypingDetectionParameters, (int timeWindow, |
660 int costPerTyping, | 660 int costPerTyping, |
661 int reportingThreshold, | 661 int reportingThreshold, |
662 int penaltyDecay, | 662 int penaltyDecay, |
663 int typeEventDelay)); | 663 int typeEventDelay)); |
664 int EnableHighPassFilter(bool enable) override { | 664 int EnableHighPassFilter(bool enable) { |
665 highpass_filter_enabled_ = enable; | 665 highpass_filter_enabled_ = enable; |
666 return 0; | 666 return 0; |
667 } | 667 } |
668 bool IsHighPassFilterEnabled() override { | 668 bool IsHighPassFilterEnabled() { |
669 return highpass_filter_enabled_; | 669 return highpass_filter_enabled_; |
670 } | 670 } |
671 bool IsStereoChannelSwappingEnabled() override { | 671 bool IsStereoChannelSwappingEnabled() { |
672 return stereo_swapping_enabled_; | 672 return stereo_swapping_enabled_; |
673 } | 673 } |
674 void EnableStereoChannelSwapping(bool enable) override { | 674 void EnableStereoChannelSwapping(bool enable) { |
675 stereo_swapping_enabled_ = enable; | 675 stereo_swapping_enabled_ = enable; |
676 } | 676 } |
677 int GetNetEqCapacity() const { | 677 int GetNetEqCapacity() const { |
678 auto ch = channels_.find(last_channel_); | 678 auto ch = channels_.find(last_channel_); |
679 ASSERT(ch != channels_.end()); | 679 ASSERT(ch != channels_.end()); |
680 return ch->second->neteq_capacity; | 680 return ch->second->neteq_capacity; |
681 } | 681 } |
682 bool GetNetEqFastAccelerate() const { | 682 bool GetNetEqFastAccelerate() const { |
683 auto ch = channels_.find(last_channel_); | 683 auto ch = channels_.find(last_channel_); |
684 ASSERT(ch != channels_.end()); | 684 ASSERT(ch != channels_.end()); |
(...skipping 19 matching lines...) Expand all Loading... |
704 webrtc::NsModes ns_mode_ = webrtc::kNsDefault; | 704 webrtc::NsModes ns_mode_ = webrtc::kNsDefault; |
705 webrtc::AgcModes agc_mode_ = webrtc::kAgcDefault; | 705 webrtc::AgcModes agc_mode_ = webrtc::kAgcDefault; |
706 webrtc::AgcConfig agc_config_; | 706 webrtc::AgcConfig agc_config_; |
707 int playout_fail_channel_ = -1; | 707 int playout_fail_channel_ = -1; |
708 FakeAudioProcessing audio_processing_; | 708 FakeAudioProcessing audio_processing_; |
709 }; | 709 }; |
710 | 710 |
711 } // namespace cricket | 711 } // namespace cricket |
712 | 712 |
713 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVOICEENGINE_H_ | 713 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVOICEENGINE_H_ |
OLD | NEW |