diff options
author | Max Horn | 2015-07-19 17:08:08 +0200 |
---|---|---|
committer | Max Horn | 2015-07-19 17:12:05 +0200 |
commit | ac4360af88d2dfec53fc00677c0284b8ab849b86 (patch) | |
tree | 33602714846acb74f591b3a56cfbad03717bec2f | |
parent | 4887796888772d1347846ee58227d013afa0e19a (diff) | |
download | scummvm-rg350-ac4360af88d2dfec53fc00677c0284b8ab849b86.tar.gz scummvm-rg350-ac4360af88d2dfec53fc00677c0284b8ab849b86.tar.bz2 scummvm-rg350-ac4360af88d2dfec53fc00677c0284b8ab849b86.zip |
SCUMM: Get rid of unused Audio::mixer references
-rw-r--r-- | engines/scumm/players/player_ad.cpp | 5 | ||||
-rw-r--r-- | engines/scumm/players/player_ad.h | 4 | ||||
-rw-r--r-- | engines/scumm/scumm.cpp | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/engines/scumm/players/player_ad.cpp b/engines/scumm/players/player_ad.cpp index 5c0d443105..4d4be2c3c2 100644 --- a/engines/scumm/players/player_ad.cpp +++ b/engines/scumm/players/player_ad.cpp @@ -27,6 +27,7 @@ #include "scumm/saveload.h" #include "audio/fmopl.h" +#include "audio/mixer.h" #include "common/textconsole.h" #include "common/config-manager.h" @@ -35,8 +36,8 @@ namespace Scumm { #define AD_CALLBACK_FREQUENCY 472 -Player_AD::Player_AD(ScummEngine *scumm, Audio::Mixer *mixer) - : _vm(scumm), _mixer(mixer) { +Player_AD::Player_AD(ScummEngine *scumm) + : _vm(scumm) { _opl2 = OPL::Config::create(); if (!_opl2->init()) { error("Could not initialize OPL2 emulator"); diff --git a/engines/scumm/players/player_ad.h b/engines/scumm/players/player_ad.h index b8cd8dc359..63fda3cc7c 100644 --- a/engines/scumm/players/player_ad.h +++ b/engines/scumm/players/player_ad.h @@ -26,7 +26,6 @@ #include "scumm/music.h" #include "audio/audiostream.h" -#include "audio/mixer.h" #include "common/mutex.h" @@ -43,7 +42,7 @@ class ScummEngine; */ class Player_AD : public MusicEngine { public: - Player_AD(ScummEngine *scumm, Audio::Mixer *mixer); + Player_AD(ScummEngine *scumm); virtual ~Player_AD(); // MusicEngine API @@ -62,7 +61,6 @@ public: private: ScummEngine *const _vm; Common::Mutex _mutex; - Audio::Mixer *const _mixer; void setupVolume(); int _musicVolume; diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index c2e0cb2e05..24d676a1ff 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -1905,7 +1905,7 @@ void ScummEngine::setupMusic(int midi) { // EGA/VGA. However, we support multi MIDI for that game and we cannot // support this with the Player_AD code at the moment. The reason here // is that multi MIDI is supported internally by our iMuse output. - _musicEngine = new Player_AD(this, _mixer); + _musicEngine = new Player_AD(this); } else if (_game.version >= 3 && _game.heversion <= 62) { MidiDriver *nativeMidiDriver = 0; MidiDriver *adlibMidiDriver = 0; |