mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-30 22:23:54 +00:00
MADS: Hook in the section 1 sound player
This commit is contained in:
parent
85c311059c
commit
59da02fa9a
@ -161,6 +161,7 @@ void Game::gameLoop() {
|
||||
setSectionHandler();
|
||||
_sectionHandler->preLoadSection();
|
||||
initSection(_sectionNumber);
|
||||
_vm->_sound->init(_sectionNumber);
|
||||
_sectionHandler->postLoadSection();
|
||||
|
||||
_scene._spriteSlots.reset();
|
||||
|
@ -48,8 +48,14 @@ void SoundManager::init(int sectionNumber) {
|
||||
switch (_vm->getGameID()) {
|
||||
case GType_RexNebular:
|
||||
// TODO: Other Rex Adlib section drivers
|
||||
assert(sectionNumber == 1);
|
||||
_driver = new Nebular::ASound1(_mixer);
|
||||
switch (sectionNumber) {
|
||||
case 1:
|
||||
_driver = new Nebular::ASound1(_mixer);
|
||||
break;
|
||||
default:
|
||||
_driver = nullptr;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user