Fixed sound using streams.

This commit is contained in:
lotodore
2007-06-03 10:03:54 +00:00
parent 2623d43290
commit 03bffdbc76
3 changed files with 28 additions and 29 deletions
+3 -4
View File
@@ -1053,6 +1053,9 @@ void mainWindowImpl::refreshAction(int playerID, int playerAction) {
// paint action pixmap and raise
actionLabelArray[playerID]->setPixmap(QPixmap(":/actions/resources/graphics/actions/action_"+actionArray[playerAction]+".png"));
//play sounds if exist
mySDLPlayer->playSound(actionArray[playerAction].toStdString());
}
if (playerAction == 1) {
@@ -1063,10 +1066,6 @@ void mainWindowImpl::refreshAction(int playerID, int playerAction) {
holeCardsArray[playerID][1]->setPixmap(onePix, FALSE);
}
}
//play sounds if exist
mySDLPlayer->playSound(actionArray[playerAction].toStdString());
}
}