mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-13 16:44:10 +01:00
2023-11-13 Fred Gleason <fredg@paravelsystems.com>
* Removed the 'RDCae::setOutputPort()' method. * Removed the 'Set Output Port' ['OP'] CAE command from caed(8). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
34
cae/cae.cpp
34
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;i<RD_MAX_PORTS;i++) {
|
||||
if(i==stream) {
|
||||
dvr->setOutputVolume(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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user