summaryrefslogtreecommitdiff
path: root/src/sound.h
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-04-16 14:18:33 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-04-16 14:18:33 +0000
commitf34960bc4a774764062a7bff70596779006c9413 (patch)
treeeff906ad2f016a47689e3d19902057c13e00d7e5 /src/sound.h
parent62de779017018a6e8f89fed9e0c930fc4904f5d2 (diff)
downloadmana-f34960bc4a774764062a7bff70596779006c9413.tar.gz
mana-f34960bc4a774764062a7bff70596779006c9413.tar.bz2
mana-f34960bc4a774764062a7bff70596779006c9413.tar.xz
mana-f34960bc4a774764062a7bff70596779006c9413.zip
- Readding stripping to executable (Dev-cpp project options)
- New slider skin - Some updates to win32 compile guide - Cleaned sound engine - Improved setup window (need testing)
Diffstat (limited to 'src/sound.h')
-rw-r--r--src/sound.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/sound.h b/src/sound.h
index 96cb8baf..27748fb6 100644
--- a/src/sound.h
+++ b/src/sound.h
@@ -27,12 +27,9 @@
#include <guichan.hpp>
#include <SDL.h>
#include <SDL_mixer.h>
-#include <map>
#include "resources/resourcemanager.h"
-typedef short SOUND_ID;
-
/** Sound engine
*
* \ingroup CORE
@@ -108,41 +105,18 @@ class Sound {
void setSfxVolume(int volume);
/**
- * Preloads a sound-item into buffer.
- *
- * \param path Full path to file
- */
- SOUND_ID loadSfx(const char *path);
-
- /**
- * Plays an item in soundpool.
- *
- * \param id Id returned to the item in the soundpool
- */
- void playSfx(SOUND_ID id);
-
- /**
* Plays an item.
*
* \param path Full path to file
*/
void playSfx(const char *path);
- /**
- * Wipe all items off the cache
- */
- void clearCache();
-
private:
bool installed;
int musicVolume, sfxVolume;
Mix_Music *music;
-
- /** list of preloaded sound data / items */
- std::map<int, SoundEffect*> soundPool;
- SOUND_ID items;
};
#endif