projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup of function for fading laser in MM engine
[rocksndiamonds.git]
/
src
/
libgame
/
sound.c
diff --git
a/src/libgame/sound.c
b/src/libgame/sound.c
index 35c0a2465457b8f34e33423aa3a91213c7e0de3d..6ca95ea47de709bce3727f24bed5315fe753550c 100644
(file)
--- a/
src/libgame/sound.c
+++ b/
src/libgame/sound.c
@@
-741,6
+741,16
@@
static MusicInfo *getMusicInfoEntryFromMusicID(int pos)
return mus_info[list_pos];
}
return mus_info[list_pos];
}
+char *getSoundInfoEntryFilename(int pos)
+{
+ SoundInfo *snd_info = getSoundInfoEntryFromSoundID(pos);
+
+ if (snd_info == NULL)
+ return NULL;
+
+ return getBaseNamePtr(snd_info->source_filename);
+}
+
char *getMusicInfoEntryFilename(int pos)
{
MusicInfo *mus_info = getMusicInfoEntryFromMusicID(pos);
char *getMusicInfoEntryFilename(int pos)
{
MusicInfo *mus_info = getMusicInfoEntryFromMusicID(pos);
@@
-1103,7
+1113,7
@@
static void ReloadCustomMusic(void)
LoadCustomMusic_NoConf();
}
LoadCustomMusic_NoConf();
}
-void InitReloadCustomSounds(
char *set_identifier
)
+void InitReloadCustomSounds(
void
)
{
if (!audio.sound_available)
return;
{
if (!audio.sound_available)
return;
@@
-1111,7
+1121,7
@@
void InitReloadCustomSounds(char *set_identifier)
ReloadCustomSounds();
}
ReloadCustomSounds();
}
-void InitReloadCustomMusic(
char *set_identifier
)
+void InitReloadCustomMusic(
void
)
{
if (!audio.music_available)
return;
{
if (!audio.music_available)
return;