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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 } | 345 } |
346 WEBRTC_STUB(StopSend, (int channel)); | 346 WEBRTC_STUB(StopSend, (int channel)); |
347 WEBRTC_STUB(GetVersion, (char version[1024])); | 347 WEBRTC_STUB(GetVersion, (char version[1024])); |
348 WEBRTC_STUB(LastError, ()); | 348 WEBRTC_STUB(LastError, ()); |
349 WEBRTC_FUNC(AssociateSendChannel, (int channel, | 349 WEBRTC_FUNC(AssociateSendChannel, (int channel, |
350 int accociate_send_channel)) { | 350 int accociate_send_channel)) { |
351 WEBRTC_CHECK_CHANNEL(channel); | 351 WEBRTC_CHECK_CHANNEL(channel); |
352 channels_[channel]->associate_send_channel = accociate_send_channel; | 352 channels_[channel]->associate_send_channel = accociate_send_channel; |
353 return 0; | 353 return 0; |
354 } | 354 } |
355 webrtc::RtcEventLog* GetEventLog() { return nullptr; } | |
356 | 355 |
357 // webrtc::VoECodec | 356 // webrtc::VoECodec |
358 WEBRTC_STUB(NumOfCodecs, ()); | 357 WEBRTC_STUB(NumOfCodecs, ()); |
359 WEBRTC_STUB(GetCodec, (int index, webrtc::CodecInst& codec)); | 358 WEBRTC_STUB(GetCodec, (int index, webrtc::CodecInst& codec)); |
360 WEBRTC_FUNC(SetSendCodec, (int channel, const webrtc::CodecInst& codec)) { | 359 WEBRTC_FUNC(SetSendCodec, (int channel, const webrtc::CodecInst& codec)) { |
361 WEBRTC_CHECK_CHANNEL(channel); | 360 WEBRTC_CHECK_CHANNEL(channel); |
362 // To match the behavior of the real implementation. | 361 // To match the behavior of the real implementation. |
363 if (_stricmp(codec.plname, "telephone-event") == 0 || | 362 if (_stricmp(codec.plname, "telephone-event") == 0 || |
364 _stricmp(codec.plname, "audio/telephone-event") == 0 || | 363 _stricmp(codec.plname, "audio/telephone-event") == 0 || |
365 _stricmp(codec.plname, "CN") == 0 || | 364 _stricmp(codec.plname, "CN") == 0 || |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 webrtc::VoiceEngineObserver* observer_; | 772 webrtc::VoiceEngineObserver* observer_; |
774 int playout_fail_channel_; | 773 int playout_fail_channel_; |
775 int recording_sample_rate_; | 774 int recording_sample_rate_; |
776 int playout_sample_rate_; | 775 int playout_sample_rate_; |
777 FakeAudioProcessing audio_processing_; | 776 FakeAudioProcessing audio_processing_; |
778 }; | 777 }; |
779 | 778 |
780 } // namespace cricket | 779 } // namespace cricket |
781 | 780 |
782 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVOICEENGINE_H_ | 781 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVOICEENGINE_H_ |
OLD | NEW |