Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
b0e9e0fb
Commit
b0e9e0fb
authored
Oct 02, 2015
by
ctrlaltca
Browse files
Merge pull request #1603 from ctrlaltca/fix_audio
Fix volume control
parents
d09b75a3
a9f2cd73
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/soundengine.cpp
View file @
b0e9e0fb
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment