|
|
|
@ -422,6 +422,7 @@ void CController::ReadDevice(std::shared_ptr<CDV3003> device, EAmbeType type)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
void CController::AppendWave(const std::shared_ptr<CTranscoderPacket> packet) const
|
|
|
|
void CController::AppendWave(const std::shared_ptr<CTranscoderPacket> packet) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::stringstream sstr;
|
|
|
|
std::stringstream sstr;
|
|
|
|
@ -437,7 +438,6 @@ void CController::AppendWave(const std::shared_ptr<CTranscoderPacket> packet) co
|
|
|
|
std::cerr << "could not open pcm file " << sstr.str();
|
|
|
|
std::cerr << "could not open pcm file " << sstr.str();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
|
|
|
|
void CController::Dump(const std::shared_ptr<CTranscoderPacket> p, const std::string &title) const
|
|
|
|
void CController::Dump(const std::shared_ptr<CTranscoderPacket> p, const std::string &title) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::string codec;
|
|
|
|
std::string codec;
|
|
|
|
@ -480,13 +480,13 @@ void CController::Dump(const std::shared_ptr<CTranscoderPacket> p, const std::st
|
|
|
|
// std::cout << std::setw(2) << std::setfill('0') << unsigned(*(p->GetDMRData()+i));
|
|
|
|
// std::cout << std::setw(2) << std::setfill('0') << unsigned(*(p->GetDMRData()+i));
|
|
|
|
// std::cout << std::endl;
|
|
|
|
// std::cout << std::endl;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
if (p->M17IsSet())
|
|
|
|
// if (p->M17IsSet())
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
std::cout << "M17 Data: ";
|
|
|
|
// std::cout << "M17 Data: ";
|
|
|
|
for (unsigned int i=0; i<16; i++)
|
|
|
|
// for (unsigned int i=0; i<16; i++)
|
|
|
|
std::cout << std::setw(2) << std::setfill('0') << unsigned(*(p->GetM17Data()+i));
|
|
|
|
// std::cout << std::setw(2) << std::setfill('0') << unsigned(*(p->GetM17Data()+i));
|
|
|
|
std::cout << std::endl;
|
|
|
|
// std::cout << std::endl;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
std::cout << std::dec;
|
|
|
|
std::cout << std::dec;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|