niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
| 11 | #ifndef TEST_FEC_H |
| 12 | #define TEST_FEC_H |
| 13 | |
| 14 | #include "ACMTest.h" |
| 15 | #include "Channel.h" |
| 16 | #include "PCMFile.h" |
| 17 | |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 18 | namespace webrtc { |
| 19 | |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 20 | class TestFEC : public ACMTest |
| 21 | { |
| 22 | public: |
| 23 | TestFEC(int testMode); |
| 24 | ~TestFEC(); |
| 25 | |
| 26 | void Perform(); |
| 27 | private: |
| 28 | // The default value of '-1' indicates that the registration is based only on codec name |
| 29 | // and a sampling frequncy matching is not required. This is useful for codecs which support |
| 30 | // several sampling frequency. |
pbos@webrtc.org | 0946a56 | 2013-04-09 00:28:06 +0000 | [diff] [blame] | 31 | int16_t RegisterSendCodec(char side, char* codecName, int32_t sampFreqHz = -1); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 32 | void Run(); |
pbos@webrtc.org | 0946a56 | 2013-04-09 00:28:06 +0000 | [diff] [blame] | 33 | void OpenOutFile(int16_t testNumber); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 34 | void DisplaySendReceiveCodec(); |
pbos@webrtc.org | 0946a56 | 2013-04-09 00:28:06 +0000 | [diff] [blame] | 35 | int32_t SetVAD(bool enableDTX, bool enableVAD, ACMVADMode vadMode); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 36 | AudioCodingModule* _acmA; |
| 37 | AudioCodingModule* _acmB; |
| 38 | |
| 39 | Channel* _channelA2B; |
| 40 | |
| 41 | PCMFile _inFileA; |
| 42 | PCMFile _outFileB; |
pbos@webrtc.org | 0946a56 | 2013-04-09 00:28:06 +0000 | [diff] [blame] | 43 | int16_t _testCntr; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 44 | int _testMode; |
| 45 | }; |
| 46 | |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 47 | } // namespace webrtc |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 48 | |
| 49 | #endif |