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 24 matching lines...) Expand all Loading... | |
35 static const int kOpusBandwidthSwb = 12000; | 35 static const int kOpusBandwidthSwb = 12000; |
36 static const int kOpusBandwidthFb = 20000; | 36 static const int kOpusBandwidthFb = 20000; |
37 | 37 |
38 #define WEBRTC_CHECK_CHANNEL(channel) \ | 38 #define WEBRTC_CHECK_CHANNEL(channel) \ |
39 if (channels_.find(channel) == channels_.end()) return -1; | 39 if (channels_.find(channel) == channels_.end()) return -1; |
40 | 40 |
41 class FakeAudioProcessing : public webrtc::AudioProcessing { | 41 class FakeAudioProcessing : public webrtc::AudioProcessing { |
42 public: | 42 public: |
43 FakeAudioProcessing() : experimental_ns_enabled_(false) {} | 43 FakeAudioProcessing() : experimental_ns_enabled_(false) {} |
44 | 44 |
45 WEBRTC_BOOL_STUB(ApplyConfig, (const AudioProcessing::Config& config)); | |
the sun
2016/09/01 13:48:00
Use same order as in audio_processing.h
peah-webrtc
2016/09/02 08:21:59
Good find!
Done.
| |
45 WEBRTC_STUB(Initialize, ()) | 46 WEBRTC_STUB(Initialize, ()) |
46 WEBRTC_STUB(Initialize, ( | 47 WEBRTC_STUB(Initialize, ( |
47 int input_sample_rate_hz, | 48 int input_sample_rate_hz, |
48 int output_sample_rate_hz, | 49 int output_sample_rate_hz, |
49 int reverse_sample_rate_hz, | 50 int reverse_sample_rate_hz, |
50 webrtc::AudioProcessing::ChannelLayout input_layout, | 51 webrtc::AudioProcessing::ChannelLayout input_layout, |
51 webrtc::AudioProcessing::ChannelLayout output_layout, | 52 webrtc::AudioProcessing::ChannelLayout output_layout, |
52 webrtc::AudioProcessing::ChannelLayout reverse_layout)); | 53 webrtc::AudioProcessing::ChannelLayout reverse_layout)); |
53 WEBRTC_STUB(Initialize, ( | 54 WEBRTC_STUB(Initialize, ( |
54 const webrtc::ProcessingConfig& processing_config)); | 55 const webrtc::ProcessingConfig& processing_config)); |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
559 webrtc::AecmModes aecm_mode_ = webrtc::kAecmSpeakerphone; | 560 webrtc::AecmModes aecm_mode_ = webrtc::kAecmSpeakerphone; |
560 webrtc::NsModes ns_mode_ = webrtc::kNsDefault; | 561 webrtc::NsModes ns_mode_ = webrtc::kNsDefault; |
561 webrtc::AgcModes agc_mode_ = webrtc::kAgcDefault; | 562 webrtc::AgcModes agc_mode_ = webrtc::kAgcDefault; |
562 webrtc::AgcConfig agc_config_; | 563 webrtc::AgcConfig agc_config_; |
563 FakeAudioProcessing audio_processing_; | 564 FakeAudioProcessing audio_processing_; |
564 }; | 565 }; |
565 | 566 |
566 } // namespace cricket | 567 } // namespace cricket |
567 | 568 |
568 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVOICEENGINE_H_ | 569 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVOICEENGINE_H_ |
OLD | NEW |