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

@@ -162,11 +162,15 @@ void RDSimplePlayer::play(int start_pos)
if(q->first()) {
play_cut_gain=q->value(2).toInt();
play_handles.push(handle);
/*
for(int i=0;i<RD_MAX_PORTS;i++) {
play_cae->setOutputVolume(play_card,play_stream,i,RD_MUTE_DEPTH);
play_cae->setOutputVolume(play_card,play_stream,i,RD_MUTE_DEPTH);
}
play_cae->setOutputVolume(play_card,play_stream,play_port,0+play_cut_gain);
play_cae->positionPlay(play_handles.back(),q->value(0).toUInt()+start_pos);
*/
play_cae->
setOutputVolume(play_card,play_stream,play_port,0+play_cut_gain);
play_cae->
positionPlay(play_handles.back(),q->value(0).toUInt()+start_pos);
play_cae->play(play_handles.back(),
q->value(1).toUInt()-(q->value(0).toUInt()+start_pos),
RD_TIMESCALE_DIVISOR,false);