1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-08 00:44:48 -04:00

M17 mod: corrected LSF stream type for audio and implemented CAN

This commit is contained in:
f4exb
2022-06-30 00:17:31 +02:00
parent 6015fce33d
commit 15e3d843f3
6 changed files with 40 additions and 93 deletions
+6 -2
View File
@@ -231,7 +231,7 @@ void M17ModSource::pullAF(Real& sample, bool& carrier)
{
if (m_settings.m_audioType == M17ModSettings::AudioFile)
{
// sox f4exb_call.wav --encoding float --endian little f4exb_call.raw
// sox f4exb_call.wav --encoding float --endian little --rate 48k f4exb_call.raw
// ffplay -f f32le -ar 48k -ac 1 f4exb_call.raw
if (m_ifstream && m_ifstream->is_open())
{
@@ -287,7 +287,10 @@ void M17ModSource::pullM17(Real& sample, bool& carrier)
{
if (!m_m17PullAudio)
{
M17ModProcessor::MsgStartAudio *msg = M17ModProcessor::MsgStartAudio::create(m_settings.m_sourceCall, m_settings.m_destCall);
M17ModProcessor::MsgStartAudio *msg = M17ModProcessor::MsgStartAudio::create(
m_settings.m_sourceCall,
m_settings.m_destCall,
m_settings.m_can);
m_processor->getInputMessageQueue()->push(msg);
m_m17PullAudio = true;
}
@@ -569,6 +572,7 @@ void M17ModSource::sendPacket()
M17ModProcessor::MsgSendSMS *msg = M17ModProcessor::MsgSendSMS::create(
m_settings.m_sourceCall,
m_settings.m_destCall,
m_settings.m_can,
m_settings.m_smsText
);
m_processor->getInputMessageQueue()->push(msg);