cleanup of channel stopping and fix cd_file's pause/resume

This commit is contained in:
Bill Currie 2007-03-27 06:15:57 +00:00 committed by Jeff Teunissen
parent f2dc7bd02c
commit 8d5b5fdf04
4 changed files with 54 additions and 63 deletions

View file

@ -170,7 +170,6 @@ struct sfxblock_s {
*/
struct channel_s {
struct channel_s *next; //!< next channel in "free" list
int free; //!< true if free channel
sfx_t *sfx; //!< sound played by this channel
int leftvol; //!< 0-255 volume
int rightvol; //!< 0-255 volume
@ -181,6 +180,7 @@ struct channel_s {
int entchannel; //
vec3_t origin; //!< origin of sound effect
vec_t dist_mult; //!< distance multiplier (attenuation/clip)
int pause; //!< don't update the channel at all
int master_vol; //!< 0-255 master volume
int phase; //!< phase shift between l-r in samples
int oldphase; //!< phase shift between l-r in samples