1 // Emacs style mode select -*- C++ -*-
2 //-----------------------------------------------------------------------------
6 // Copyright (C) 1993-1996 by id Software, Inc.
8 // This source is available for distribution and/or modification
9 // only under the terms of the DOOM Source Code License as
10 // published by id Software. All rights reserved.
12 // The source is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
18 // The not so system specific sound interface.
20 //-----------------------------------------------------------------------------
34 // Initializes sound stuff, including volume
35 // Sets channels, SFX and music volume,
36 // allocates channel buffer, sets S_sfx lookup.
47 // Per level startup code.
48 // Kills playing sounds at start of level,
49 // determines music if any, changes music.
55 // Start sound for thing at <origin>
56 // using <sound_id> from sounds.h
65 // Will start a sound at a given volume.
73 // Stop sound for thing at <origin>
74 void S_StopSound(void* origin);
77 // Start music using <music_id> from sounds.h
78 void S_StartMusic(int music_id);
80 // Start music using <music_id> from sounds.h,
81 // and set whether looping
87 // Stops the music fer sure.
88 void S_StopMusic(void);
90 // Stop and resume music, during game PAUSE.
91 void S_PauseSound(void);
92 void S_ResumeSound(void);
96 // Updates music & sounds
98 void S_UpdateSounds(void* listener);
100 void S_SetMusicVolume(int volume);
101 void S_SetSfxVolume(int volume);
105 //-----------------------------------------------------------------------------
109 //-----------------------------------------------------------------------------