Partially fix Adlib volume setting in Cine (Now uses music volume for Adlib volume, previously always played with full volume. Doesn't differentiate between playing sound effects and music!).

svn-id: r33700
This commit is contained in:
Kari Salminen 2008-08-08 14:46:19 +00:00
parent 5cb08bd1e5
commit 70760a77fd

View File

@ -57,6 +57,10 @@ CineEngine::CineEngine(OSystem *syst, const CINEGameDescription *gameDesc) : Eng
// Setup mixer
_mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, ConfMan.getInt("sfx_volume"));
_mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, ConfMan.getInt("music_volume"));
// Use music volume for plain sound types (At least the Adlib player uses a plain sound type
// so previously the music and sfx volume controls didn't affect it at all).
// FIXME: Make Adlib player differentiate between playing sound effects and music and remove this.
_mixer->setVolumeForSoundType(Audio::Mixer::kPlainSoundType, ConfMan.getInt("music_volume"));
g_cine = this;