2014-10-30 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in 'lib/rdsimpleplayer.cpp' that cause play
	start position to be set incorrectly.
This commit is contained in:
Fred Gleason 2014-10-30 10:48:11 -04:00
parent 6476a38b0c
commit 750ed937af
2 changed files with 4 additions and 1 deletions

View File

@ -14613,3 +14613,6 @@
2014-10-28 Fred Gleason <fredg@paravelsystems.com>
* Updated 'NEWS'.
* Incremented the package version to 2.10.0.
2014-10-30 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in 'lib/rdsimpleplayer.cpp' that cause play
start position to be set incorrectly.

View File

@ -135,7 +135,7 @@ void RDSimplePlayer::play(int start_pos)
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(1).toUInt()+start_pos);
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);