From 41c268f0192405e949d1513cbd086eb96aaa0f94 Mon Sep 17 00:00:00 2001 From: Alexander Baldeck Date: Wed, 29 Sep 2004 08:48:36 +0000 Subject: added simple soundpool for preloading sample data & bgm references --- src/sound/sound.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/sound/sound.h') diff --git a/src/sound/sound.h b/src/sound/sound.h index 4c5f13d5..58054c59 100644 --- a/src/sound/sound.h +++ b/src/sound/sound.h @@ -60,13 +60,15 @@ class TmwSound { void StartMIDI(char *, int); void StartMOD(char *, int); - void StopBGM(); + void StopBGM(); void StartWAV(char *, int); void SetVol(int, int, int); void SetAdjVol(int, int, int); TMWSOUND_SID LoadItem(char *, char); + void UnloadItem(TMWSOUND_SID); + void PlayItem(TMWSOUND_SID, int); TmwSound() {isOk=-1;} @@ -85,7 +87,7 @@ class TmwSound { int pan; int pitch; - + int ret; int vol_digi; int vol_midi; @@ -103,7 +105,7 @@ class TmwSound { void * data; }; - /* list of preloaded sound data / items */ + /** list of preloaded sound data / items */ list soundpool; list::iterator sounditem; TMWSOUND_SID items; -- cgit v1.2.3-70-g09d2