X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsound.h;h=deb4e38ecfe69cf014a2daf38e8e11e70797fc1d;hb=3ea7bc006da99f1b13d817285820023b30ce2e38;hp=e2d2054ae404fae4454885738b2fc9b4f93b9c56;hpb=39fb4fecfb8d4647d3563bdb18ce0065f6129522;p=rocksndiamonds.git diff --git a/src/libgame/sound.h b/src/libgame/sound.h index e2d2054a..deb4e38e 100644 --- a/src/libgame/sound.h +++ b/src/libgame/sound.h @@ -15,7 +15,7 @@ #include "system.h" -/* values for platform specific sound initialization */ +// values for platform specific sound initialization #define AUDIO_SAMPLE_RATE_22050 22050 #define AUDIO_FRAGMENT_SIZE_512 512 @@ -47,7 +47,7 @@ #define FIRST_SOUND_CHANNEL 1 -/* values for PlaySound(), StopSound() and friends */ +// values for PlaySound(), StopSound() and friends #define SND_CTRL_NONE (0) #define SND_CTRL_MUSIC (1 << 0) #define SND_CTRL_LOOP (1 << 1) @@ -93,15 +93,15 @@ #define SOUND_MIDDLE (SOUND_MAX_LEFT2RIGHT / 2) -/* general sound functions */ +// general sound functions void UnixOpenAudio(void); void UnixCloseAudio(void); -/* mixer functions */ +// mixer functions void Mixer_InitChannels(void); void StartMixer(void); -/* sound client functions */ +// sound client functions void PlayMusic(int); void PlayMusicLoop(int); void PlaySound(int); @@ -120,16 +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 *getMusicInfoEntryFilename(int); -char *getCurrentlyPlayingMusicFilename(); -int getSoundListPropertyMappingSize(); -int getMusicListPropertyMappingSize(); -struct PropertyMapping *getSoundListPropertyMapping(); -struct PropertyMapping *getMusicListPropertyMapping(); +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 *,