X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsound.h;h=cbafa9b7fb0b6c9d5b531a3d688221cc0e3ea75e;hb=115ce6f2da1914d68b0fe0e5f9082973190dacdd;hp=26e882b3e177c5345b97c8a3670046463dd83c9e;hpb=4239ba2adc93afb81230b1a4ea42e7eaf68452c6;p=rocksndiamonds.git diff --git a/src/libgame/sound.h b/src/libgame/sound.h index 26e882b3..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,14 +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); -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 *,