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 samples, int rate, int channels, sfxblock_t *block, cache_allocator_t allocator) |
| Allocate a sound buffer from cache for cached sounds. 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... | |
| sfxbuffer_t* SND_CacheGetBuffer | ( | sfx_t * | sfx | ) |
Get the pointer to the sound buffer.
| sfx | sound reference |
| void SND_CacheRelease | ( | sfx_t * | sfx | ) |
Unlock a cached sound from memory.
After calling this, SND_CacheGetBffer() will return a null buffer.
| sfx | sound reference |
| sfxbuffer_t* SND_CacheRetain | ( | sfx_t * | sfx | ) |
Lock a cached sound into memory.
After calling this, SND_CacheGetBffer() will return a valid buffer.
| sfx | sound reference |
| sfxbuffer_t* SND_CacheTouch | ( | sfx_t * | sfx | ) |
Ensure a cached sound is in memory.
| sfx | sound reference |
Retrieve wavinfo from a cached sound.
| sfx | sound reference |
| sfxbuffer_t* SND_GetCache | ( | long | samples, |
| int | rate, | ||
| int | channels, | ||
| sfxblock_t * | block, | ||
| cache_allocator_t | allocator | ||
| ) |
Allocate a sound buffer from cache for cached sounds.
| samples | size in samples |
| rate | sample rate |
| channels | number of channels in input data |
| block | cached sound descriptor to initialize |
| allocator | cache allocator function |
| int SND_StreamAdvance | ( | sfxbuffer_t * | buffer, |
| unsigned int | count | ||
| ) |
Advance the position with the stream, updating the ring buffer as necessary.
Null for chached sounds.
| buffer | "this" |
| count | number of samples to advance |
| sfxbuffer_t* SND_StreamGetBuffer | ( | sfx_t * | sfx | ) |
Get the pointer to the sound buffer.
| sfx | sound reference |
| void SND_StreamRelease | ( | sfx_t * | sfx | ) |
Unlock a streamed sound from memory.
Doesn't actually do anything.
| sfx | sound reference |
| sfxbuffer_t* SND_StreamRetain | ( | sfx_t * | sfx | ) |
Lock a streamed sound into memory.
Doesn't actually do anything other than return a pointer to the buffer.
| sfx | sound reference |
| void SND_StreamSetPos | ( | sfxbuffer_t * | buffer, |
| unsigned int | pos | ||
| ) |
Seek to an absolute position within the stream, resetting the ring buffer.
| buffer | "this" |
| pos | sample position with the stream |