XenevaOS
Loading...
Searching...
No Matches
Functions | Variables
i_sound.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "config.h"
#include "doomfeatures.h"
#include "doomtype.h"
#include "i_sound.h"
#include "i_video.h"
#include "m_argv.h"
#include "m_config.h"
Include dependency graph for i_sound.c:

Functions

void I_InitSound (boolean use_sfx_prefix)
 
void I_ShutdownSound (void)
 
int I_GetSfxLumpNum (sfxinfo_t *sfxinfo)
 
void I_UpdateSound (void)
 
void I_UpdateSoundParams (int channel, int vol, int sep)
 
int I_StartSound (sfxinfo_t *sfxinfo, int channel, int vol, int sep)
 
void I_StopSound (int channel)
 
boolean I_SoundIsPlaying (int channel)
 
void I_PrecacheSounds (sfxinfo_t *sounds, int num_sounds)
 
void I_InitMusic (void)
 
void I_ShutdownMusic (void)
 
void I_SetMusicVolume (int volume)
 
void I_PauseSong (void)
 
void I_ResumeSong (void)
 
void * I_RegisterSong (void *data, int len)
 
void I_UnRegisterSong (void *handle)
 
void I_PlaySong (void *handle, boolean looping)
 
void I_StopSong (void)
 
boolean I_MusicIsPlaying (void)
 
void I_BindSoundVariables (void)
 

Variables

int snd_samplerate = 44100
 
int snd_cachesize = 64 * 1024 * 1024
 
int snd_maxslicetime_ms = 28
 
char * snd_musiccmd = ""
 
int snd_musicdevice = SNDDEVICE_SB
 
int snd_sfxdevice = SNDDEVICE_SB
 

Function Documentation

◆ I_BindSoundVariables()

void I_BindSoundVariables ( void  )

◆ I_GetSfxLumpNum()

int I_GetSfxLumpNum ( sfxinfo_t *  sfxinfo)

◆ I_InitMusic()

void I_InitMusic ( void  )

◆ I_InitSound()

void I_InitSound ( boolean  use_sfx_prefix)

◆ I_MusicIsPlaying()

boolean I_MusicIsPlaying ( void  )

◆ I_PauseSong()

void I_PauseSong ( void  )

◆ I_PlaySong()

void I_PlaySong ( void *  handle,
boolean  looping 
)

◆ I_PrecacheSounds()

void I_PrecacheSounds ( sfxinfo_t *  sounds,
int  num_sounds 
)

◆ I_RegisterSong()

void * I_RegisterSong ( void *  data,
int  len 
)

◆ I_ResumeSong()

void I_ResumeSong ( void  )

◆ I_SetMusicVolume()

void I_SetMusicVolume ( int  volume)

◆ I_ShutdownMusic()

void I_ShutdownMusic ( void  )

◆ I_ShutdownSound()

void I_ShutdownSound ( void  )

◆ I_SoundIsPlaying()

boolean I_SoundIsPlaying ( int  channel)

◆ I_StartSound()

int I_StartSound ( sfxinfo_t *  sfxinfo,
int  channel,
int  vol,
int  sep 
)

◆ I_StopSong()

void I_StopSong ( void  )

◆ I_StopSound()

void I_StopSound ( int  channel)

◆ I_UnRegisterSong()

void I_UnRegisterSong ( void *  handle)

◆ I_UpdateSound()

void I_UpdateSound ( void  )

◆ I_UpdateSoundParams()

void I_UpdateSoundParams ( int  channel,
int  vol,
int  sep 
)

Variable Documentation

◆ snd_cachesize

int snd_cachesize = 64 * 1024 * 1024

◆ snd_maxslicetime_ms

int snd_maxslicetime_ms = 28

◆ snd_musiccmd

char* snd_musiccmd = ""

◆ snd_musicdevice

int snd_musicdevice = SNDDEVICE_SB

◆ snd_samplerate

int snd_samplerate = 44100

◆ snd_sfxdevice

int snd_sfxdevice = SNDDEVICE_SB