|
XenevaOS
|
#include <stdio.h>#include <stdlib.h>#include "i_sound.h"#include "i_system.h"#include "doomfeatures.h"#include "deh_str.h"#include "doomstat.h"#include "doomtype.h"#include "sounds.h"#include "s_sound.h"#include "m_misc.h"#include "m_random.h"#include "m_argv.h"#include "p_local.h"#include "w_wad.h"#include "z_zone.h"
Classes | |
| struct | channel_t |
Macros | |
| #define | S_CLIPPING_DIST (1200 * FRACUNIT) |
| #define | S_CLOSE_DIST (200 * FRACUNIT) |
| #define | S_ATTENUATOR ((S_CLIPPING_DIST - S_CLOSE_DIST) >> FRACBITS) |
| #define | S_STEREO_SWING (96 * FRACUNIT) |
| #define | NORM_PITCH 128 |
| #define | NORM_PRIORITY 64 |
| #define | NORM_SEP 128 |
Functions | |
| void | S_Init (int sfxVolume, int musicVolume) |
| void | S_Shutdown (void) |
| void | S_Start (void) |
| void | S_StopSound (mobj_t *origin) |
| void | S_StartSound (void *origin_p, int sfx_id) |
| void | S_PauseSound (void) |
| void | S_ResumeSound (void) |
| void | S_UpdateSounds (mobj_t *listener) |
| void | S_SetMusicVolume (int volume) |
| void | S_SetSfxVolume (int volume) |
| void | S_StartMusic (int m_id) |
| void | S_ChangeMusic (int musicnum, int looping) |
| boolean | S_MusicPlaying (void) |
| void | S_StopMusic (void) |
Variables | |
| int | sfxVolume = 8 |
| int | musicVolume = 8 |
| int | snd_channels = 8 |
| #define NORM_PITCH 128 |
| #define NORM_PRIORITY 64 |
| #define NORM_SEP 128 |
| #define S_ATTENUATOR ((S_CLIPPING_DIST - S_CLOSE_DIST) >> FRACBITS) |
| #define S_CLIPPING_DIST (1200 * FRACUNIT) |
| #define S_CLOSE_DIST (200 * FRACUNIT) |
| #define S_STEREO_SWING (96 * FRACUNIT) |
| void S_ChangeMusic | ( | int | musicnum, |
| int | looping | ||
| ) |
| void S_Init | ( | int | sfxVolume, |
| int | musicVolume | ||
| ) |
| boolean S_MusicPlaying | ( | void | ) |
| void S_PauseSound | ( | void | ) |
| void S_ResumeSound | ( | void | ) |
| void S_SetMusicVolume | ( | int | volume | ) |
| void S_SetSfxVolume | ( | int | volume | ) |
| void S_Shutdown | ( | void | ) |
| void S_Start | ( | void | ) |
| void S_StartMusic | ( | int | m_id | ) |
| void S_StartSound | ( | void * | origin_p, |
| int | sfx_id | ||
| ) |
| void S_StopMusic | ( | void | ) |
| void S_StopSound | ( | mobj_t * | origin | ) |
| void S_UpdateSounds | ( | mobj_t * | listener | ) |
| int musicVolume = 8 |
| int sfxVolume = 8 |
| int snd_channels = 8 |