- Started wrapping the current sound code around appropriate defines

- Introduced a new resource type, SoundResource, used in the new music code

svn-id: r46421
This commit is contained in:
Filippos Karapetis 2009-12-19 16:19:53 +00:00
parent b32748d810
commit 0c1b646c7f
9 changed files with 152 additions and 2 deletions

View file

@ -1797,7 +1797,9 @@ static EngineState *_game_run(EngineState *&s, int restoring) {
game_exit(s);
script_init_engine(s);
game_init(s);
#ifdef USE_OLD_MUSIC_FUNCTIONS
s->_sound.sfx_reset_player();
#endif
_init_stack_base_with_selector(s, s->_kernel->_selectorCache.play);
send_selector(s, s->_gameObj, s->_gameObj, s->stack_base, 2, s->stack_base);