2 //**************************************************************************
4 //** soundst.h : Heretic 2 : Raven Software, Corp.
11 //**************************************************************************
22 typedef struct sfxinfo_s
25 char lumpname[12]; // Only need 9 bytes, but padded out to be dword aligned
26 //struct sfxinfo_s *link; // Make alias for another sound
27 int priority; // Higher priority takes precendence
28 int usefulness; // Determines when a sound should be cached out
31 int numchannels; // total number of channels a sound type may occupy
48 unsigned short priority;
62 extern int snd_MaxVolume;
63 extern int snd_MusicVolume;
66 void S_StartSound(mobj_t *origin, int sound_id);
67 int S_GetSoundID(char *name);
68 void S_StartSoundAtVolume(mobj_t *origin, int sound_id, int volume);
69 void S_StopSound(mobj_t *origin);
70 void S_StopAllSound(void);
71 void S_PauseSound(void);
72 void S_ResumeSound(void);
73 void S_UpdateSounds(mobj_t *listener);
74 void S_StartSong(int song, boolean loop);
75 void S_StartSongName(char *songLump, boolean loop);
77 void S_GetChannelInfo(SoundInfo_t *s);
78 void S_SetMusicVolume(void);
79 boolean S_GetSoundPlayingInfo(mobj_t *mobj, int sound_id);