2021-12-28 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in caed(8) that broke audio capture under
	ALSA and JACK.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-12-28 09:00:45 -05:00
parent 8ae2c2bacb
commit 884f327050
5 changed files with 8 additions and 12 deletions

View File

@ -22845,3 +22845,6 @@
* Added an 'AR_PYTHON_MODULE()' autoconf macro.
* Added a test for the PyPI module build chain to 'configure.ac'.
* Bumped the minimum Python version dependency from 3.4 to 3.6.
2021-12-28 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in caed(8) that broke audio capture under
ALSA and JACK.

View File

@ -634,15 +634,11 @@ void MainObject::stopRecordingData(int id,unsigned card,unsigned stream)
cae_server->sendCommand(id,QString::asprintf("SR %u %u -!",card,stream));
return;
}
if(dvr->stopRecord(card,stream)) {
cae_server->sendCommand(id,QString::asprintf("SR %u %u +!",card,stream));
}
else {
if(!dvr->stopRecord(card,stream)) { // No positive echo required here!
cae_server->sendCommand(id,QString::asprintf("SR %u %u -!",card,stream));
return;
}
rda->syslog(LOG_INFO,
"StopRecord - Card: %d Stream: %d",card,stream);
rda->syslog(LOG_INFO,"StopRecord - Card: %d Stream: %d",card,stream);
}

View File

@ -217,7 +217,7 @@ void CaeServer::connectionClosedData(int id)
bool CaeServer::ProcessCommand(int id,const QString &cmd)
{
printf("CaeServer::ProcessCommand(%d,'%s')\n",id,cmd.toUtf8().constData());
// rda->syslog(LOG_NOTICE,"processing command: \"%s\"",cmd.toUtf8().constData());
CaeServerConnection *conn=cae_connections.value(id);
bool ok=false;
QString cmdstr=cmd;

View File

@ -1052,6 +1052,7 @@ bool DriverAlsa::stopRecord(int card,int port)
return false;
}
alsa_recording[card][port]=false;
stateRecordUpdate(card,port,2);
return true;
#else
return false;
@ -1386,7 +1387,6 @@ void DriverAlsa::recordTimerData(int cardport)
int stream=cardport-card*RD_MAX_PORTS;
stopRecord(card,stream);
stateRecordUpdate(card,stream,2);
#endif // ALSA
}

View File

@ -31,9 +31,6 @@
#include "driver_jack.h"
#ifdef JACK
#endif // JACK
#ifdef JACK
//
// Callback Variables
@ -1050,6 +1047,7 @@ bool DriverJack::stopRecord(int card,int port)
return false;
}
jack_recording[port]=false;
stateRecordUpdate(card,port,2);
return true;
#else
return false;
@ -1393,7 +1391,6 @@ void DriverJack::recordTimerData(int stream)
{
#ifdef JACK
stopRecord(jack_card,stream);
// stateRecordUpdate(jack_card,stream,2);
#endif // JACK
}