diff options
author | Torbjörn Andersson | 2003-11-03 07:47:42 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2003-11-03 07:47:42 +0000 |
commit | b3b0118292df23a5d4bf0e9b32a56fb4ddfba1ea (patch) | |
tree | df5851f12ebb885d05db421078980e122698243e /sword2/sound.h | |
parent | 0ece8aab8b03e0aead5f18e33797ec85294bf158 (diff) | |
download | scummvm-rg350-b3b0118292df23a5d4bf0e9b32a56fb4ddfba1ea.tar.gz scummvm-rg350-b3b0118292df23a5d4bf0e9b32a56fb4ddfba1ea.tar.bz2 scummvm-rg350-b3b0118292df23a5d4bf0e9b32a56fb4ddfba1ea.zip |
The resource and memory managers are now created dynamically.
Renamed the resource manager's open/close methods openResource() and
closeResource() to avoid confusion. (It was I who originally shortened
their names to open() and close(), but I've changed my mind now.)
Moved more stuff into Sword2Engine.
svn-id: r11088
Diffstat (limited to 'sword2/sound.h')
-rw-r--r-- | sword2/sound.h | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/sword2/sound.h b/sword2/sound.h index 66a68db660..3aaf71e777 100644 --- a/sword2/sound.h +++ b/sword2/sound.h @@ -30,31 +30,19 @@ #ifndef SOUND_H #define SOUND_H +// max number of fx in queue at once [DO NOT EXCEED 255] +#define FXQ_LENGTH 32 + namespace Sword2 { // fx types -#define FX_SPOT 0 -#define FX_LOOP 1 -#define FX_RANDOM 2 -#define FX_SPOT2 3 - -// to be called during system initialisation -void Init_fx_queue(void); - -// to be called from the main loop, once per cycle -void Process_fx_queue(void); - -// stops all fx & clears the queue - eg. when leaving a location -void Clear_fx_queue(void); - -void PauseAllSound(void); -void UnpauseAllSound(void); - -void Kill_music(void); - -// used to store id of tunes that loop, for save & restore -extern uint32 looping_music_id; +enum { + FX_SPOT = 0, + FX_LOOP = 1, + FX_RANDOM = 2, + FX_SPOT2 = 3 +}; } // End of namespace Sword2 |