QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
snd_mem.c File Reference

Macros

#define SAMPLE_GAP   4
 

Functions

sfxbuffer_t * SND_CacheGetBuffer (sfx_t *sfx)
 Get the pointer to the sound buffer. More...
 
void SND_CacheRelease (sfx_t *sfx)
 Unlock a cached sound from memory. More...
 
sfxbuffer_t * SND_CacheRetain (sfx_t *sfx)
 Lock a cached sound into memory. More...
 
sfxbuffer_t * SND_CacheTouch (sfx_t *sfx)
 Ensure a cached sound is in memory. More...
 
wavinfo_t * SND_CacheWavinfo (sfx_t *sfx)
 Retrieve wavinfo from a cached sound. More...
 
sfxbuffer_t * SND_GetCache (long frames, int rate, int channels, sfxblock_t *block, cache_allocator_t allocator)
 Allocate a sound buffer from cache for cached sounds. More...
 
int SND_Load (sfx_t *sfx)
 Load the referenced sound. More...
 
int SND_StreamAdvance (sfxbuffer_t *buffer, unsigned int count)
 Advance the position with the stream, updating the ring buffer as necessary. More...
 
sfxbuffer_t * SND_StreamGetBuffer (sfx_t *sfx)
 Get the pointer to the sound buffer. More...
 
void SND_StreamRelease (sfx_t *sfx)
 Unlock a streamed sound from memory. More...
 
sfxbuffer_t * SND_StreamRetain (sfx_t *sfx)
 Lock a streamed sound into memory. More...
 
void SND_StreamSetPos (sfxbuffer_t *buffer, unsigned int pos)
 Seek to an absolute position within the stream, resetting the ring buffer. More...
 
wavinfo_t * SND_StreamWavinfo (sfx_t *sfx)
 Retrieve wavinfo from a streamed sound. More...
 

Variables

snd_render_data_t snd_render_data
 
volatile dma_t * snd_shm
 

Macro Definition Documentation

#define SAMPLE_GAP   4