Fingolfin, I see what you mean about the volume control mess :)

This fixes Adlib playback, which was previously always mixed at volume 0.

svn-id: r15956
This commit is contained in:
Jerome Fisher 2004-11-28 23:57:33 +00:00
parent d6d3e5422b
commit 9df1a8ea2f

View File

@ -343,6 +343,8 @@ int QueenEngine::init(GameDetector &detector) {
if (!_mixer->isReady())
warning("Sound initialisation failed.");
_mixer->setVolume(ConfMan.getInt("sfx_volume"));
// Set mixer music volume to maximum, since music volume is regulated by MusicPlayer's MIDI messages
_mixer->setMusicVolume(256);
int midiDriver = GameDetector::detectMusicDriver(MDT_NATIVE | MDT_ADLIB | MDT_PREFER_NATIVE);
MidiDriver *driver = GameDetector::createMidi(midiDriver);