QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages

Functions

sfx_tSND_LoadSound (const char *name)
 Pre-load a sound. More...
 
sfx_tSND_PrecacheSound (const char *sample)
 Pre-load a sound into the cache. More...
 
void SND_SFX_Cache (sfx_t *sfx, char *realname, wavinfo_t info, cache_loader_t loader)
 Cache sound data. More...
 
void SND_SFX_Init (void)
 Initialize the sfx sub-subsystem. More...
 
void SND_SFX_Stream (sfx_t *sfx, char *realname, wavinfo_t info, sfx_t *(*open)(sfx_t *sfx))
 Stream sound data. More...
 
void SND_SFX_StreamClose (sfx_t *sfx)
 Close a stream. More...
 
sfx_tSND_SFX_StreamOpen (sfx_t *sfx, void *file, long(*read)(void *, float **), int(*seek)(sfxstream_t *, int), void(*close)(sfx_t *))
 Open a stream for playback. More...
 

Detailed Description

Function Documentation

sfx_t* SND_LoadSound ( const char *  name)

Pre-load a sound.

Parameters
namename of sound to load
sfx_t* SND_PrecacheSound ( const char *  sample)

Pre-load a sound into the cache.

Parameters
samplename of sound to precache
void SND_SFX_Cache ( sfx_t sfx,
char *  realname,
wavinfo_t  info,
cache_loader_t  loader 
)

Cache sound data.

Initializes caching fields of sfx.

Parameters
sfx
realname
info
loader
void SND_SFX_Init ( void  )

Initialize the sfx sub-subsystem.

void SND_SFX_Stream ( sfx_t sfx,
char *  realname,
wavinfo_t  info,
sfx_t *(*)(sfx_t *sfx)  open 
)

Stream sound data.

Initializes streaming fields of sfx.

Parameters
sfx
realname
info
open
void SND_SFX_StreamClose ( sfx_t sfx)

Close a stream.

Parameters
sfx
sfx_t* SND_SFX_StreamOpen ( sfx_t sfx,
void *  file,
long(*)(void *, float **)  read,
int(*)(sfxstream_t *, int seek,
void(*)(sfx_t *)  close 
)

Open a stream for playback.

Parameters
sfx
file
read
seek
close