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
19 // System interface, sound.
21 //-----------------------------------------------------------------------------
33 // Init at program start...
34 void I_InitSound(void);
36 // ... update sound buffer and audio device at runtime...
37 void I_UpdateSound(void);
38 void I_SubmitSound(void);
40 // ... shut down and relase at program termination.
41 void I_ShutdownSound(void);
48 // Initialize channels?
49 void I_SetChannels(void);
51 // Get raw data lump index for sound descriptor.
52 int I_GetSfxLumpNum (sfxinfo_t* sfxinfo );
55 // Starts a sound in a particular sound channel.
65 // Stops a sound channel.
66 void I_StopSound(int handle);
68 // Called by S_*() functions
69 // to see if a channel is still playing.
70 // Returns 0 if no longer playing, 1 if playing.
71 int I_SoundIsPlaying(int handle);
73 // Updates the volume, separation,
74 // and pitch of a sound channel.
86 void I_InitMusic(void);
87 void I_ShutdownMusic(void);
89 void I_SetMusicVolume(int volume);
90 // PAUSE game handling.
91 void I_PauseSong(int handle);
92 void I_ResumeSong(int handle);
93 // Registers a song handle to song data.
94 int I_RegisterSong(void *data);
95 // Called by anything that wishes to start music.
96 // plays a song, and when the song is done,
97 // starts playing it again in an endless loop.
98 // Horrible thing to do, considering.
103 // Stops a song over 3 seconds.
104 void I_StopSong(int handle);
105 // See above (register), then think backwards
106 void I_UnRegisterSong(int handle);
111 //-----------------------------------------------------------------------------
115 //-----------------------------------------------------------------------------