Index: modules/audio_coding/test/TwoWayCommunication.cc |
diff --git a/modules/audio_coding/test/TwoWayCommunication.cc b/modules/audio_coding/test/TwoWayCommunication.cc |
index 8049436cd01fe754e2c9bb845d8a7da97711a251..addb71764e6cdbe796359e54aa7d6213a764b73f 100644 |
--- a/modules/audio_coding/test/TwoWayCommunication.cc |
+++ b/modules/audio_coding/test/TwoWayCommunication.cc |
@@ -34,14 +34,16 @@ |
#define MAX_FILE_NAME_LENGTH_BYTE 500 |
TwoWayCommunication::TwoWayCommunication(int testMode) |
- : _acmA(AudioCodingModule::Create()), |
- _acmRefA(AudioCodingModule::Create()), |
+ : _acmA(AudioCodingModule::Create(1)), |
+ _acmRefA(AudioCodingModule::Create(3)), |
_testMode(testMode) { |
AudioCodingModule::Config config; |
// The clicks will be more obvious in FAX mode. TODO(henrik.lundin) Really? |
config.neteq_config.playout_mode = kPlayoutFax; |
+ config.id = 2; |
config.decoder_factory = CreateBuiltinAudioDecoderFactory(); |
_acmB.reset(AudioCodingModule::Create(config)); |
+ config.id = 4; |
_acmRefB.reset(AudioCodingModule::Create(config)); |
} |
@@ -60,7 +62,7 @@ |
void TwoWayCommunication::ChooseCodec(uint8_t* codecID_A, |
uint8_t* codecID_B) { |
- std::unique_ptr<AudioCodingModule> tmpACM(AudioCodingModule::Create()); |
+ std::unique_ptr<AudioCodingModule> tmpACM(AudioCodingModule::Create(0)); |
uint8_t noCodec = tmpACM->NumberOfCodecs(); |
CodecInst codecInst; |
printf("List of Supported Codecs\n"); |