X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsound.h;h=cbafa9b7fb0b6c9d5b531a3d688221cc0e3ea75e;hb=f7b47bbe40b05bc4d815f94dd1bcdc21596d4ff5;hp=8eb344ef2e921dfae3d8ef554d86d77784740b04;hpb=8d71e6fb8309bd90ce5f2900d84c686b17950492;p=rocksndiamonds.git diff --git a/src/libgame/sound.h b/src/libgame/sound.h index 8eb344ef..cbafa9b7 100644 --- a/src/libgame/sound.h +++ b/src/libgame/sound.h @@ -60,7 +60,8 @@ #define SND_CTRL_PLAY_SOUND (SND_CTRL_NONE) #define SND_CTRL_PLAY_LOOP (SND_CTRL_LOOP) -#define SND_CTRL_PLAY_MUSIC (SND_CTRL_LOOP | SND_CTRL_MUSIC) +#define SND_CTRL_PLAY_MUSIC (SND_CTRL_MUSIC) +#define SND_CTRL_PLAY_MUSIC_LOOP (SND_CTRL_MUSIC | SND_CTRL_LOOP) #define SND_CTRL_FADE_SOUND (SND_CTRL_FADE) #define SND_CTRL_FADE_MUSIC (SND_CTRL_FADE | SND_CTRL_MUSIC) @@ -102,10 +103,12 @@ void StartMixer(void); /* sound client functions */ void PlayMusic(int); +void PlayMusicLoop(int); void PlaySound(int); void PlaySoundStereo(int, int); void PlaySoundLoop(int); void PlaySoundMusic(int); +void PlaySoundMusicLoop(int); void PlaySoundExt(int, int, int, int); void FadeMusic(void); void FadeSound(int); @@ -117,15 +120,16 @@ void StopSounds(void); void StopSoundExt(int, int); void ExpireSoundLoops(boolean); -int getSoundListSize(); -int getMusicListSize(); +int getSoundListSize(void); +int getMusicListSize(void); struct FileInfo *getSoundListEntry(int); struct FileInfo *getMusicListEntry(int); -char *getCurrentlyPlayingMusicFilename(); -int getSoundListPropertyMappingSize(); -int getMusicListPropertyMappingSize(); -struct PropertyMapping *getSoundListPropertyMapping(); -struct PropertyMapping *getMusicListPropertyMapping(); +char *getMusicInfoEntryFilename(int); +char *getCurrentlyPlayingMusicFilename(void); +int getSoundListPropertyMappingSize(void); +int getMusicListPropertyMappingSize(void); +struct PropertyMapping *getSoundListPropertyMapping(void); +struct PropertyMapping *getMusicListPropertyMapping(void); void InitSoundList(struct ConfigInfo *, int, struct ConfigTypeInfo *, char **, char **, char **, char **, char **); void InitMusicList(struct ConfigInfo *, int, struct ConfigTypeInfo *,