diff -purN REminiscence-0.1.9.orig/game.cpp REminiscence-0.1.9/game.cpp --- REminiscence-0.1.9.orig/game.cpp 2010-01-13 19:55:11.318625003 +0100 +++ REminiscence-0.1.9/game.cpp 2010-01-13 20:06:37.770629950 +0100 @@ -47,7 +47,9 @@ void Game::run() { } #endif +#ifndef NO_SDL_MIXER _mix.init(); +#endif playCutscene(0x40); playCutscene(0x0D); @@ -77,8 +79,9 @@ void Game::run() { } _res.free_TEXT(); - +#ifndef NO_SDL_MIXER _mix.free(); +#endif _stub->destroy(); } @@ -615,17 +618,21 @@ void Game::drawStoryTexts() { } MixerChunk chunk; _res.load_VCE(_textToDisplay, textSpeechSegment++, &chunk.data, &chunk.len); +#ifndef NO_SDL_MIXER if (chunk.data) { _mix.play(&chunk, 32000, Mixer::MAX_VOLUME); } +#endif _vid.updateScreen(); while (!_stub->_pi.backspace && !_stub->_pi.quit) { inp_update(); _stub->sleep(80); } +#ifndef NO_SDL_MIXER if (chunk.data) { _mix.stopAll(); } +#endif _stub->_pi.backspace = false; if (*str == 0) { break; @@ -1191,7 +1198,9 @@ void Game::playSound(uint8 sfxId, uint8 MixerChunk mc; mc.data = sfx->data; mc.len = sfx->len; +#ifndef NO_SDL_MIXER _mix.play(&mc, 6000, Mixer::MAX_VOLUME >> softVol); +#endif } } else { // in-game music