Merge pull request #1603 from ctrlaltca/fix_audio

Fix volume control
This commit is contained in:
ctrlaltca 2015-10-02 14:46:30 +02:00
commit b0e9e0fb3a

View file

@ -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);