nope! more tracing is needed

main
Tom Early 4 years ago
parent 5a84e03402
commit eff07fda5b

@ -204,18 +204,15 @@ void CController::ReadReflector()
dstar_device[devnum]->packet_queue.push(packet); dstar_device[devnum]->packet_queue.push(packet);
//increment the dstar vocoder index //increment the dstar vocoder index
IncrementDStarVocoder(); IncrementDStarVocoder();
{ // encode the audio to dmr
// encode the audio to dmr devnum = current_dmr_vocoder / 3;
// make a second shared ptr to the same packet //send the audio to the corrent dmr vocoder
auto packet2 = std::make_shared<CTranscoderPacket>(packet); dmr_device[devnum]->SendAudio(current_dmr_vocoder%3, packet->GetAudio());
devnum = current_dmr_vocoder / 3; //push the packet onto the dmr vocoder's queue
//send the audio to the corrent dmr vocoder dmr_device[devnum]->packet_queue.push(packet);
dmr_device[devnum]->SendAudio(current_dmr_vocoder%3, packet2->GetAudio()); //increment the dmr vocoder index
//push the packet onto the dmr vocoder's queue IncrementDMRVocoder();
dmr_device[devnum]->packet_queue.push(packet2); std::cout << "USE COUNT: " << packet.use_count() << std::endl;
//increment the dmr vocoder index
IncrementDMRVocoder();
}
break; break;
case ECodecType::none: case ECodecType::none:
default: default:
@ -274,6 +271,7 @@ void CController::ReadAmbeDevices()
if (FD_ISSET(dmr_device[i]->GetFd(), &FdSet)) if (FD_ISSET(dmr_device[i]->GetFd(), &FdSet))
{ {
ReadDevice(dmr_device[i], EAmbeType::dmr); ReadDevice(dmr_device[i], EAmbeType::dmr);
std::cout << "Read DMR device " << i << std::endl;
} }
} }
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.