| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory); | 43 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory); |
| 44 virtual ~AcmReceiveTestOldApi(); | 44 virtual ~AcmReceiveTestOldApi(); |
| 45 | 45 |
| 46 // Registers the codecs with default parameters from ACM. | 46 // Registers the codecs with default parameters from ACM. |
| 47 void RegisterDefaultCodecs(); | 47 void RegisterDefaultCodecs(); |
| 48 | 48 |
| 49 // Registers codecs with payload types matching the pre-encoded NetEq test | 49 // Registers codecs with payload types matching the pre-encoded NetEq test |
| 50 // files. | 50 // files. |
| 51 void RegisterNetEqTestCodecs(); | 51 void RegisterNetEqTestCodecs(); |
| 52 | 52 |
| 53 int RegisterExternalReceiveCodec(int rtp_payload_type, | |
| 54 AudioDecoder* external_decoder, | |
| 55 int sample_rate_hz, | |
| 56 int num_channels, | |
| 57 const std::string& name); | |
| 58 | |
| 59 // Runs the test and returns true if successful. | 53 // Runs the test and returns true if successful. |
| 60 void Run(); | 54 void Run(); |
| 61 | 55 |
| 62 AudioCodingModule* get_acm() { return acm_.get(); } | 56 AudioCodingModule* get_acm() { return acm_.get(); } |
| 63 | 57 |
| 64 protected: | 58 protected: |
| 65 // Method is called after each block of output audio is received from ACM. | 59 // Method is called after each block of output audio is received from ACM. |
| 66 virtual void AfterGetAudio() {} | 60 virtual void AfterGetAudio() {} |
| 67 | 61 |
| 68 SimulatedClock clock_; | 62 SimulatedClock clock_; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 93 | 87 |
| 94 const int output_freq_hz_1_; | 88 const int output_freq_hz_1_; |
| 95 const int output_freq_hz_2_; | 89 const int output_freq_hz_2_; |
| 96 const int toggle_period_ms_; | 90 const int toggle_period_ms_; |
| 97 int64_t last_toggle_time_ms_; | 91 int64_t last_toggle_time_ms_; |
| 98 }; | 92 }; |
| 99 | 93 |
| 100 } // namespace test | 94 } // namespace test |
| 101 } // namespace webrtc | 95 } // namespace webrtc |
| 102 #endif // WEBRTC_MODULES_AUDIO_CODING_ACM2_ACM_RECEIVE_TEST_OLDAPI_H_ | 96 #endif // WEBRTC_MODULES_AUDIO_CODING_ACM2_ACM_RECEIVE_TEST_OLDAPI_H_ |
| OLD | NEW |