From a9f2cd73de5ed42925ffc3a146e63a4e1c35efe6 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Mon, 28 Sep 2015 12:24:22 +0200 Subject: [PATCH] Fix volume control fix #1528 --- cockatrice/src/soundengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cockatrice/src/soundengine.cpp b/cockatrice/src/soundengine.cpp index 9686ecef..b3cd3c6a 100644 --- a/cockatrice/src/soundengine.cpp +++ b/cockatrice/src/soundengine.cpp @@ -89,7 +89,7 @@ void SoundEngine::playSound(QString fileName) inputBuffer->setData(audioData[fileName]); inputBuffer->open(QIODevice::ReadOnly); #if QT_VERSION >= 0x050000 - player->setVolume(settingsCache->getMasterVolume()); + player->setVolume(settingsCache->getMasterVolume() / 100.0); #endif player->stop(); player->start(inputBuffer);