2019-07-19 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug that broke the 'Switch Take' ['ST'],
	'Switch Add' ['SA'] and 'Switch Remove' ['SR'] RMLs when
	using the 'Local Audio Adapter' driver.
This commit is contained in:
Fred Gleason 2019-07-19 12:30:19 -04:00
parent ba501b0259
commit 504754f726
2 changed files with 6 additions and 2 deletions

View File

@ -18867,3 +18867,7 @@
* Added an rdlogmanager(1) man page.
2019-07-16 Fred Gleason <fredg@paravelsystems.com>
* Added an rdairplay(1) man page.
2019-07-19 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug that broke the 'Switch Take' ['ST'],
'Switch Add' ['SA'] and 'Switch Remove' ['SR'] RMLs when
using the 'Local Audio Adapter' driver.

View File

@ -508,9 +508,9 @@ bool CaeServer::ProcessCommand(int id,const QString &cmd)
if(ok&&(card<RD_MAX_CARDS)) {
unsigned input=f0.at(2).toUInt(&ok);
if(ok&&(input<RD_MAX_PORTS)) {
unsigned output=f0.at(2).toUInt(&ok);
unsigned output=f0.at(3).toUInt(&ok);
if(ok&&(output<RD_MAX_PORTS)) {
int level=f0.at(3).toUInt(&ok);
int level=f0.at(4).toInt(&ok);
if(ok) {
emit setAudioPassthroughLevelReq(id,card,input,output,level);
was_processed=true;