MADS: Hook in the section 1 sound player

This commit is contained in:
Paul Gilbert 2014-05-12 20:21:33 -04:00
parent 85c311059c
commit 59da02fa9a
2 changed files with 9 additions and 2 deletions

View File

@ -161,6 +161,7 @@ void Game::gameLoop() {
setSectionHandler(); setSectionHandler();
_sectionHandler->preLoadSection(); _sectionHandler->preLoadSection();
initSection(_sectionNumber); initSection(_sectionNumber);
_vm->_sound->init(_sectionNumber);
_sectionHandler->postLoadSection(); _sectionHandler->postLoadSection();
_scene._spriteSlots.reset(); _scene._spriteSlots.reset();

View File

@ -48,8 +48,14 @@ void SoundManager::init(int sectionNumber) {
switch (_vm->getGameID()) { switch (_vm->getGameID()) {
case GType_RexNebular: case GType_RexNebular:
// TODO: Other Rex Adlib section drivers // TODO: Other Rex Adlib section drivers
assert(sectionNumber == 1); switch (sectionNumber) {
_driver = new Nebular::ASound1(_mixer); case 1:
_driver = new Nebular::ASound1(_mixer);
break;
default:
_driver = nullptr;
break;
}
break; break;
default: default: