From 1816980ba83275c656d0b740a071e8716e7ce3c1 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Mon, 13 Nov 2023 18:06:18 -0500 Subject: [PATCH] 2023-11-13 Fred Gleason * Removed the 'RDCae::setOutputPort()' method. * Removed the 'Set Output Port' ['OP'] CAE command from caed(8). Signed-off-by: Fred Gleason --- ChangeLog | 1 + cae/cae.cpp | 34 ----------------------- cae/cae.h | 2 -- cae/cae_server.cpp | 18 ------------ cae/cae_server.h | 2 -- docs/apis/cae.xml | 68 ++-------------------------------------------- 6 files changed, 4 insertions(+), 121 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6f58f284..5464cc52 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24475,3 +24475,4 @@ caed(8) instance. 2023-11-13 Fred Gleason * Removed the 'RDCae::setOutputPort()' method. + * Removed the 'Set Output Port' ['OP'] CAE command from caed(8). diff --git a/cae/cae.cpp b/cae/cae.cpp index b923851c..0041222a 100644 --- a/cae/cae.cpp +++ b/cae/cae.cpp @@ -178,10 +178,6 @@ MainObject::MainObject(QObject *parent) this,SLOT(stopRecordingData(int,unsigned,unsigned))); connect(cae_server,SIGNAL(setInputVolumeReq(int,unsigned,unsigned,int)), this,SLOT(setInputVolumeData(int,unsigned,unsigned,int))); - connect(cae_server, - SIGNAL(setOutputPortReq(int,unsigned,unsigned,unsigned,int)), - this, - SLOT(setOutputPortData(int,unsigned,unsigned,unsigned,int))); connect(cae_server, SIGNAL(setOutputVolumeReq(int,unsigned,unsigned,int,int)), this, @@ -689,36 +685,6 @@ void MainObject::setInputVolumeData(int id,unsigned card,unsigned stream, } -void MainObject::setOutputPortData(int id,unsigned card,unsigned stream, - unsigned port,int level) -{ - Driver *dvr=GetDriver(card); - - if(dvr==NULL) { - cae_server->sendCommand(id,QString::asprintf("OP %u %u %u %d -!", - card,stream,port,level)); - return; - } - if(!rda->config()->testOutputStreams()) { - for(unsigned i=0;isetOutputVolume(card,stream,i,level); - } - else { - dvr->setOutputVolume(card,stream,i,RD_MUTE_DEPTH); - } - } - if(rda->config()->enableMixerLogging()) { - rda->syslog(LOG_INFO, - "[mixer] SetOutputPort - Card: %d Stream: %d Port: %d Level: %d", - card,stream,port,level); - } - } - cae_server->sendCommand(id,QString::asprintf("OV %u %u %u %d +!", - card,stream,port,level)); -} - - void MainObject::setOutputVolumeData(int id,unsigned card,unsigned stream, int port,int level) { diff --git a/cae/cae.h b/cae/cae.h index d72c24bb..1eb19326 100644 --- a/cae/cae.h +++ b/cae/cae.h @@ -85,8 +85,6 @@ class MainObject : public QObject int threshold_level); void stopRecordingData(int id,unsigned card,unsigned stream); void setInputVolumeData(int id,unsigned card,unsigned stream,int level); - void setOutputPortData(int id,unsigned card,unsigned stream,unsigned port, - int level); void setOutputVolumeData(int id,unsigned card,unsigned stream,int port, int level); void fadeOutputVolumeData(int id,unsigned card,unsigned stream,unsigned port, diff --git a/cae/cae_server.cpp b/cae/cae_server.cpp index 27fecdb9..6edddc73 100644 --- a/cae/cae_server.cpp +++ b/cae/cae_server.cpp @@ -413,24 +413,6 @@ bool CaeServer::ProcessCommand(int id,const QString &cmd) } } } - if((f0.at(0)=="OP")&&(f0.size()==5)) { // Set Output Port - unsigned card=f0.at(1).toUInt(&ok); - if(ok&&(card <command>Load Playback</command> - Prepare an audio interface to play an audio file. + Prepare an audio interface to play an audio file, while also muting + all stream-to-port mixer controls for the stream returned in + stream-num. LP card-num @@ -663,70 +665,6 @@ - - <command>Set Output Port</command> - - Configure an output stream to use a particular output port. - - - This will cause the stream-num output volume - control feeding the port-num port to be set - to the level given by level, while all other - output_volume controls for that stream to be muted --e.g. set to - -100 dB. - - - OP card-num - stream-num - port-num - level! - - - - - card-num - - - - The number of the audio adapter to use. - - - - - - stream-num - - - - The stream number to use. This is relative to the audio adapter - selected. - - - - - - port-num - - - - The port number to use. This is relative to the audio adapter - selected. - - - - - - level - - - - The level, in hundreths of a dB. - - - - - - <command>Set Output Volume</command>