summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-21 00:48:15 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-21 00:48:15 +0000
commitbd32eb1e636b38e8af5e4ce7260a13e0e1901653 (patch)
treefaa11726e4baef2c2dcf9cf41f8f5bc532a470c3 /src
parentf741c14337dd0850a7201f5aa2185e40a625353a (diff)
downloadmana-bd32eb1e636b38e8af5e4ce7260a13e0e1901653.tar.gz
mana-bd32eb1e636b38e8af5e4ce7260a13e0e1901653.tar.bz2
mana-bd32eb1e636b38e8af5e4ce7260a13e0e1901653.tar.xz
mana-bd32eb1e636b38e8af5e4ce7260a13e0e1901653.zip
Added parameter names in header.
Diffstat (limited to 'src')
-rw-r--r--src/sound.cpp2
-rw-r--r--src/sound.h14
2 files changed, 8 insertions, 8 deletions
diff --git a/src/sound.cpp b/src/sound.cpp
index 2556aaa7..20530750 100644
--- a/src/sound.cpp
+++ b/src/sound.cpp
@@ -153,7 +153,7 @@ void Sound::clearCache()
#endif
}
-void Sound::close(void)
+void Sound::close()
{
isOk = -1;
clearCache();
diff --git a/src/sound.h b/src/sound.h
index 465defa5..c4a53b44 100644
--- a/src/sound.h
+++ b/src/sound.h
@@ -50,7 +50,7 @@ class Sound {
* w/ the others. so missing ins- truments can be a result. 32/20
* sounds realistic here.
*/
- void init(int, int);
+ void init(int voices, int mod_voices);
/**
* \brief Deinstall all sound functionality
@@ -68,7 +68,7 @@ class Sound {
* \param in Full path to file
* \param loop The number of times the song is played (-1 = infinite)
*/
- void startBgm(char*, int);
+ void startBgm(char *in, int loop);
/**
* \brief Stop all currently running background music tracks
@@ -87,13 +87,13 @@ class Sound {
*
* All values may only be between 0-128 where 0 means muted.
*/
- void setVolume(int);
+ void setVolume(int music);
/**
* \brief Adjusts current volume
* \param amusic Volume difference
*/
- void adjustVolume(int);
+ void adjustVolume(int amusic);
/**
* \brief Preloads a sound-item into buffer
@@ -106,7 +106,7 @@ class Sound {
* The return value should be kept as a reference to the object loaded.
* if not it is practicaly lost.
*/
- SOUND_SID loadItem(char *);
+ SOUND_SID loadItem(char *fpath);
/**
* \brief Plays an item in soundpool
@@ -115,7 +115,7 @@ class Sound {
* \param volume Volume the sound should be played with (possible
* range: 0-128)
*/
- void startItem(SOUND_SID, int);
+ void startItem(SOUND_SID id, int volume);
/**
* \brief Wipe all items off the cache
@@ -147,7 +147,7 @@ class Sound {
* \brief checks if value equals min-/maximum volume and returns
* <code>true</code> if that's the case.
*/
- bool isMaxVol(int);
+ bool isMaxVol(int vol);
};
#endif