mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-02 15:38:59 +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();
|
setSectionHandler();
|
||||||
_sectionHandler->preLoadSection();
|
_sectionHandler->preLoadSection();
|
||||||
initSection(_sectionNumber);
|
initSection(_sectionNumber);
|
||||||
|
_vm->_sound->init(_sectionNumber);
|
||||||
_sectionHandler->postLoadSection();
|
_sectionHandler->postLoadSection();
|
||||||
|
|
||||||
_scene._spriteSlots.reset();
|
_scene._spriteSlots.reset();
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user