Devilution
Diablo devolved - magic behind the 1996 computer game
sound.h
Go to the documentation of this file.
1 //HEADER_GOES_HERE
2 #ifndef __SOUND_H__
3 #define __SOUND_H__
4 
5 extern SoundSample *DSBs[8];
6 extern BOOLEAN gbSndInited;
7 extern HMODULE hDsound_dll;
8 
9 void snd_update(BOOL bStopAll);
10 void snd_stop_snd(TSnd *pSnd);
11 BOOL snd_playing(TSnd *pSnd);
12 void snd_play_snd(TSnd *pSnd, int lVolume, int lPan);
13 SoundSample *sound_dup_channel(SoundSample *DSB);
14 BOOL sound_file_reload(TSnd *sound_file, SoundSample *DSB);
15 TSnd *sound_file_load(char *path);
16 void sound_CreateSoundBuffer(TSnd *sound_file);
17 void sound_file_cleanup(TSnd *sound_file);
18 void snd_init(HWND hWnd);
19 void snd_get_volume(char *value_name, int *value);
20 void sound_create_primary_buffer(HANDLE music_track);
21 void sound_cleanup();
22 void snd_set_volume(char *key, int value);
23 void music_stop();
24 void music_start(int nTrack);
25 void sound_disable_music(BOOL disable);
26 int sound_get_or_set_music_volume(int volume);
27 int sound_get_or_set_sound_volume(int volume);
28 
29 /* rdata */
30 
31 /* data */
32 
33 extern BOOLEAN gbMusicOn;
34 extern BOOLEAN gbSoundOn;
35 extern BOOLEAN gbDupSounds;
36 extern char unk_volume[4][2];
37 
38 #endif /* __SOUND_H__ */
music_start
void music_start(int nTrack)
unk_volume
char unk_volume[4][2]
sound_get_or_set_music_volume
int sound_get_or_set_music_volume(int volume)
hDsound_dll
HMODULE hDsound_dll
gbDupSounds
BOOLEAN gbDupSounds
snd_get_volume
void snd_get_volume(char *value_name, int *value)
sound_cleanup
void sound_cleanup()
snd_play_snd
void snd_play_snd(TSnd *pSnd, int lVolume, int lPan)
DSBs
SoundSample * DSBs[8]
snd_init
void snd_init(HWND hWnd)
music_stop
void music_stop()
sound_CreateSoundBuffer
void sound_CreateSoundBuffer(TSnd *sound_file)
snd_set_volume
void snd_set_volume(char *key, int value)
sound_get_or_set_sound_volume
int sound_get_or_set_sound_volume(int volume)
gbMusicOn
BOOLEAN gbMusicOn
sound_create_primary_buffer
void sound_create_primary_buffer(HANDLE music_track)
TSnd
Definition: structs.h:458
sound_dup_channel
SoundSample * sound_dup_channel(SoundSample *DSB)
gbSndInited
BOOLEAN gbSndInited
gbSoundOn
BOOLEAN gbSoundOn
snd_playing
BOOL snd_playing(TSnd *pSnd)
snd_update
void snd_update(BOOL bStopAll)
sound_file_cleanup
void sound_file_cleanup(TSnd *sound_file)
sound_file_reload
BOOL sound_file_reload(TSnd *sound_file, SoundSample *DSB)
snd_stop_snd
void snd_stop_snd(TSnd *pSnd)
sound_disable_music
void sound_disable_music(BOOL disable)
sound_file_load
TSnd * sound_file_load(char *path)