Devilution
Diablo devolved - magic behind the 1996 computer game
effects.h
Go to the documentation of this file.
1 
6 #ifndef __EFFECTS_H__
7 #define __EFFECTS_H__
8 
9 extern int sfxdelay;
10 extern int sfxdnum;
11 extern HANDLE sghStream;
12 extern TSFX *sgpStreamSFX;
13 
14 BOOL effect_is_playing(int nSFX);
15 void stream_stop();
16 void InitMonsterSND(int monst);
17 void FreeMonsterSnd();
18 void PlayEffect(int i, int mode);
19 BOOL calc_snd_position(int x, int y, int *plVolume, int *plPan);
20 void PlaySFX(int psfx);
21 void PlaySFX_priv(TSFX *pSFX, BOOL loc, int x, int y);
22 void stream_play(TSFX *pSFX, int lVolume, int lPan);
23 int RndSFX(int psfx);
24 void PlaySfxLoc(int psfx, int x, int y);
25 void sound_stop();
26 void sfx_stop();
27 void sound_update();
28 void stream_update();
29 void effects_cleanup_sfx();
30 void sound_init();
31 void priv_sound_init(BYTE bLoadMask);
32 void ui_sound_init();
33 void effects_play_sound(char *snd_file);
34 
35 /* rdata */
36 
37 extern const char MonstSndChar[];
38 
39 /* data */
40 
41 #endif /* __EFFECTS_H__ */
sound_stop
void sound_stop()
Definition: effects.cpp:1157
sfxdelay
int sfxdelay
Definition: effects.cpp:12
MonstSndChar
const char MonstSndChar[]
Monster sound type prefix a: Attack h: Hit d: Death s: Special.
Definition: effects.cpp:26
stream_stop
void stream_stop()
Definition: effects.cpp:932
PlaySfxLoc
void PlaySfxLoc(int psfx, int x, int y)
Definition: effects.cpp:1142
priv_sound_init
void priv_sound_init(BYTE bLoadMask)
Definition: effects.cpp:1212
sfxdnum
int sfxdnum
Definition: effects.cpp:13
sgpStreamSFX
TSFX * sgpStreamSFX
Specifies the sound file and the playback state of the current sound effect.
Definition: effects.cpp:17
calc_snd_position
BOOL calc_snd_position(int x, int y, int *plVolume, int *plPan)
Definition: effects.cpp:1018
PlayEffect
void PlayEffect(int i, int mode)
Definition: effects.cpp:992
effects_play_sound
void effects_play_sound(char *snd_file)
Definition: effects.cpp:1250
effects_cleanup_sfx
void effects_cleanup_sfx()
Definition: effects.cpp:1180
ui_sound_init
void ui_sound_init()
Definition: effects.cpp:1245
TSFX
Definition: structs.h:465
effect_is_playing
BOOL effect_is_playing(int nSFX)
Definition: effects.cpp:920
PlaySFX
void PlaySFX(int psfx)
Definition: effects.cpp:1043
FreeMonsterSnd
void FreeMonsterSnd()
Definition: effects.cpp:969
sfx_stop
void sfx_stop()
PlaySFX_priv
void PlaySFX_priv(TSFX *pSFX, BOOL loc, int x, int y)
Definition: effects.cpp:1049
stream_update
void stream_update()
Definition: effects.cpp:1171
sound_init
void sound_init()
Definition: effects.cpp:1194
sound_update
void sound_update()
Definition: effects.cpp:1162
sghStream
HANDLE sghStream
A handle to the current sound effect playing.
Definition: effects.cpp:15
InitMonsterSND
void InitMonsterSND(int monst)
Definition: effects.cpp:942
RndSFX
int RndSFX(int psfx)
Definition: effects.cpp:1105
stream_play
void stream_play(TSFX *pSFX, int lVolume, int lPan)
Definition: effects.cpp:1082