From 17553ca80bd5a76080f034b03e3abc4f1f631b8f Mon Sep 17 00:00:00 2001 From: driAn Date: Mon, 8 Dec 2008 21:46:18 +0000 Subject: [PATCH] audiomanager refactoring, removed unused mapsound preloads git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3954 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/sound.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/source/src/sound.h b/source/src/sound.h index 1238e2ea..d0f942a6 100644 --- a/source/src/sound.h +++ b/source/src/sound.h @@ -363,25 +363,28 @@ class audiomanager locvector locations; oggstream *gamemusic; + void preloadmapsound(entity &e); + public: audiomanager(); - // init + // init & setup void initsound(); - void soundcleanup(); - void preloadmapsound(entity &e); void preloadmapsounds(); void applymapsoundchanges(); - void setchannels(int num); - // setup + // configuration + void setchannels(int num); void setlistenervol(int vol); - int addsound(char *name, int vol, int maxuses, bool loop, vector &sounds, bool load, int audibleradius); + int addsound(char *name, int vol, int maxuses, bool loop, vector &sounds, bool load, int audibleradius); void registermusic(char *name); + void mutesound(int n, int off); + void unmuteallsounds(); + int soundmuted(int n); // cleanup - void detachsounds(class playerent *owner); + void soundcleanup(); void clearworldsounds(bool fullclean = true); void mapsoundreset(); void stopsound(); @@ -402,9 +405,7 @@ public: void playsoundc(int n, physent *p = NULL); void sound(int n); int findsound(char *name, int vol, vector &sounds); - void mutesound(int n, int off); - void unmuteallsounds(); - int soundmuted(int n); + void detachsounds(class playerent *owner); // update void updateplayerfootsteps(class playerent *p);