2023-11-03 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in caed(8) that caused multiple play-outs on
	a common port to interfere with each others mixer settings.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2023-11-03 15:20:16 -04:00
parent a77b960345
commit 67d1e3afd8
5 changed files with 21 additions and 20 deletions

View File

@@ -691,12 +691,12 @@ void MainObject::setOutputPortData(int id,unsigned card,unsigned stream,
return;
}
if(!rda->config()->testOutputStreams()) {
for(unsigned i=0;i<RD_MAX_STREAMS;i++) {
if(i==port) {
dvr->setOutputVolume(card,i,port,level);
for(unsigned i=0;i<RD_MAX_PORTS;i++) {
if(i==stream) {
dvr->setOutputVolume(card,stream,i,level);
}
else {
dvr->setOutputVolume(card,i,port,RD_FADE_DEPTH);
dvr->setOutputVolume(card,stream,i,RD_MUTE_DEPTH);
}
}
if(rda->config()->enableMixerLogging()) {