summaryrefslogtreecommitdiff
path: root/src/sound/sound.h
diff options
context:
space:
mode:
authorAlexander Baldeck <alexander@archlinux.org>2004-09-29 08:48:36 +0000
committerAlexander Baldeck <alexander@archlinux.org>2004-09-29 08:48:36 +0000
commit41c268f0192405e949d1513cbd086eb96aaa0f94 (patch)
tree85119c01e069464ceea2c876e916c285bfda6bf8 /src/sound/sound.h
parent1c8949bc6890c5ab126e7f5914b852485e7ff02f (diff)
downloadmana-41c268f0192405e949d1513cbd086eb96aaa0f94.tar.gz
mana-41c268f0192405e949d1513cbd086eb96aaa0f94.tar.bz2
mana-41c268f0192405e949d1513cbd086eb96aaa0f94.tar.xz
mana-41c268f0192405e949d1513cbd086eb96aaa0f94.zip
added simple soundpool for preloading sample data & bgm references
Diffstat (limited to 'src/sound/sound.h')
-rw-r--r--src/sound/sound.h8
1 files changed, 5 insertions, 3 deletions
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<POOL_ITEM> soundpool;
list<POOL_ITEM>::iterator sounditem;
TMWSOUND_SID items;