diff options
| author | Paul Gilbert | 2014-10-12 16:54:40 -0400 | 
|---|---|---|
| committer | Paul Gilbert | 2014-10-12 16:54:40 -0400 | 
| commit | f978539cbc82066a5cdedfefddb539b11e60369a (patch) | |
| tree | 0e0d7597a86013222f3aabbd05823929ccae9c4d /engines/mads/mads.cpp | |
| parent | d02693cb0c65b48934aed8c61c9926e9d06ac11c (diff) | |
| download | scummvm-rg350-f978539cbc82066a5cdedfefddb539b11e60369a.tar.gz scummvm-rg350-f978539cbc82066a5cdedfefddb539b11e60369a.tar.bz2 scummvm-rg350-f978539cbc82066a5cdedfefddb539b11e60369a.zip  | |
MADS: Move OPL creation from the engine to SoundManager
Diffstat (limited to 'engines/mads/mads.cpp')
| -rw-r--r-- | engines/mads/mads.cpp | 7 | 
1 files changed, 1 insertions, 6 deletions
diff --git a/engines/mads/mads.cpp b/engines/mads/mads.cpp index d56994ab8e..52a0b40561 100644 --- a/engines/mads/mads.cpp +++ b/engines/mads/mads.cpp @@ -55,7 +55,6 @@ MADSEngine::MADSEngine(OSystem *syst, const MADSGameDescription *gameDesc) :  	_resources = nullptr;  	_sound = nullptr;  	_audio = nullptr; -	_opl = nullptr;  }  MADSEngine::~MADSEngine() { @@ -71,7 +70,6 @@ MADSEngine::~MADSEngine() {  	delete _audio;  	_mixer->stopAll(); -	delete _opl;  }  void MADSEngine::initialize() { @@ -80,9 +78,6 @@ void MADSEngine::initialize() {  	DebugMan.addDebugChannel(kDebugScripts, "scripts", "Game scripts");  	DebugMan.addDebugChannel(kDebugGraphics, "graphics", "Graphics handling"); -	_opl = OPL::Config::create(); -	_opl->init(11025); -  	// Initial sub-system engine references  	MSurface::setVm(this);  	MSprite::setVm(this); @@ -96,7 +91,7 @@ void MADSEngine::initialize() {  	Font::init(this);  	_font = new Font();  	_screen.init(); -	_sound = new SoundManager(this, _mixer, _opl); +	_sound = new SoundManager(this, _mixer);  	_audio = new AudioPlayer(_mixer, getGameID());  	_game = Game::init(this);  | 
