|
|
|
@ -377,11 +377,10 @@ void CController::Codec2toAudio(std::shared_ptr<CTranscoderPacket> packet)
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef USE_SW_AMBE2
|
|
|
|
#ifdef USE_SW_AMBE2
|
|
|
|
md380_encode_fec(ambe2, packet->GetAudioSamples());
|
|
|
|
md380_encode_fec(ambe2, packet->GetAudioSamples());
|
|
|
|
|
|
|
|
packet->SetDMRData(ambe2);
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
dmrsf_device->AddPacket(packet);
|
|
|
|
dmrsf_device->AddPacket(packet);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
packet->SetDMRData(ambe2);
|
|
|
|
|
|
|
|
p25vocoder.encode_4400((int16_t*)packet->GetAudioSamples(), imbe);
|
|
|
|
p25vocoder.encode_4400((int16_t*)packet->GetAudioSamples(), imbe);
|
|
|
|
packet->SetP25Data(imbe);
|
|
|
|
packet->SetP25Data(imbe);
|
|
|
|
packet->SetUSRPData((int16_t*)packet->GetAudioSamples());
|
|
|
|
packet->SetUSRPData((int16_t*)packet->GetAudioSamples());
|
|
|
|
|