Devilution
Diablo devolved - magic behind the 1996 computer game
Functions | Variables
effects.cpp File Reference
#include "all.h"
#include "../3rdParty/Storm/Source/storm.h"
#include <SDL_mixer.h>

Go to the source code of this file.

Functions

BOOL effect_is_playing (int nSFX)
 
void stream_stop ()
 
void InitMonsterSND (int monst)
 
void FreeMonsterSnd ()
 
void PlayEffect (int i, int mode)
 
BOOL calc_snd_position (int x, int y, int *plVolume, int *plPan)
 
void PlaySFX (int psfx)
 
void PlaySFX_priv (TSFX *pSFX, BOOL loc, int x, int y)
 
void stream_play (TSFX *pSFX, int lVolume, int lPan)
 
int RndSFX (int psfx)
 
void PlaySfxLoc (int psfx, int x, int y)
 
void sound_stop ()
 
void sound_update ()
 
void stream_update ()
 
void effects_cleanup_sfx ()
 
void sound_init ()
 
void priv_sound_init (BYTE bLoadMask)
 
void ui_sound_init ()
 
void effects_play_sound (char *snd_file)
 

Variables

DEVILUTION_BEGIN_NAMESPACE int sfxdelay
 
int sfxdnum
 
HANDLE sghStream
 A handle to the current sound effect playing. More...
 
TSFXsgpStreamSFX
 Specifies the sound file and the playback state of the current sound effect. More...
 
const char MonstSndChar [] = { 'a', 'h', 'd', 's' }
 Monster sound type prefix a: Attack h: Hit d: Death s: Special. More...
 
TSFX sgSFX []
 List of all sounds, except monsters and music. More...
 

Detailed Description

Implementation of functions for loading and playing sounds.

Definition in file effects.cpp.