2022-11-09 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rdcartslots(1) that caused it to play double audio
	when sent multiple 'Play Slot' ['DP'] RMLs.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2022-11-09 14:08:25 -05:00
parent 5792fe4e66
commit 7066ebf61c
2 changed files with 5 additions and 1 deletions

View File

@ -23641,3 +23641,6 @@
2022-11-09 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in the 'Edit Image' dialog in rdadmin(1) that could
cause the image display to be incorrectly scaled/positioned.
2022-11-09 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdcartslots(1) that caused it to play double audio
when sent multiple 'Play Slot' ['DP'] RMLs.

View File

@ -271,7 +271,8 @@ void RDCartSlot::unload()
bool RDCartSlot::play()
{
bool ret=false;
if(slot_logline->cartNumber()!=0) {
if((slot_deck->state()==RDPlayDeck::Stopped)&&
(slot_logline->cartNumber()!=0)) {
if(slot_deck->setCart(slot_logline,true)) {
if(slot_options->hookMode()&&(slot_logline->hookStartPoint()>=0)) {
slot_deck->playHook();