Oops.
[AROS-Contrib.git] / Games / Doom / s_sound.h
blob1206c5569b9783372af3f496b493e56b514889ab
1 // Emacs style mode select -*- C++ -*-
2 //-----------------------------------------------------------------------------
3 //
4 // $Id$
5 //
6 // Copyright (C) 1993-1996 by id Software, Inc.
7 //
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
15 // for more details.
17 // DESCRIPTION:
18 // The not so system specific sound interface.
20 //-----------------------------------------------------------------------------
23 #ifndef __S_SOUND__
24 #define __S_SOUND__
27 #ifdef __GNUG__
28 #pragma interface
29 #endif
34 // Initializes sound stuff, including volume
35 // Sets channels, SFX and music volume,
36 // allocates channel buffer, sets S_sfx lookup.
38 void
39 S_Init
40 ( int sfxVolume,
41 int musicVolume );
47 // Per level startup code.
48 // Kills playing sounds at start of level,
49 // determines music if any, changes music.
51 void S_Start(void);
55 // Start sound for thing at <origin>
56 // using <sound_id> from sounds.h
58 void
59 S_StartSound
60 ( void* origin,
61 int sound_id );
65 // Will start a sound at a given volume.
66 void
67 S_StartSoundAtVolume
68 ( void* origin,
69 int sound_id,
70 int 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
82 void
83 S_ChangeMusic
84 ( int music_id,
85 int 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);
104 #endif
105 //-----------------------------------------------------------------------------
107 // $Log$
108 // Revision 1.1 2000/02/29 18:21:06 stegerg
109 // Doom port based on ADoomPPC. Read README.AROS!
112 //-----------------------------------------------------------------------------