mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-06 04:50:26 +00:00
01f59fa85f
heavily customized version of DUMB (Dynamic Universal Music Bibliotheque). It has been slightly modified by me: * Added support for Ogg Vorbis-compressed samples in XM files ala FMOD. * Removed excessive mallocs from the replay core. * Rerolled the loops in resample.c. Unrolling them made the object file ~250k large while providing little benefit. Even at ~100k, I think it's still larger than it ought to be, but I'll live with it for now. Other than that, it's essentially the same thing you'd hear in foobar2000, minus some subsong detection features. Release builds of the library look like they might even be slightly faster than FMOD, which is a plus. - Fixed: Timidity::font_add() did not release the file reader it created. - Fixed: The SF2 loader did not free the sample headers in its destructor. SVN r995 (trunk)
20 lines
578 B
C
20 lines
578 B
C
#ifndef _B_ARRAY_H_
|
|
#define _B_ARRAY_H_
|
|
|
|
#include <stdlib.h>
|
|
|
|
void * bit_array_create(size_t size);
|
|
void bit_array_destroy(void * array);
|
|
void * bit_array_dup(void * array);
|
|
|
|
void bit_array_reset(void * array);
|
|
|
|
void bit_array_set(void * array, size_t bit);
|
|
int bit_array_test(void * array, size_t bit);
|
|
int bit_array_test_range(void * array, size_t bit, size_t count);
|
|
void bit_array_clear(void * array, size_t bit);
|
|
|
|
void bit_array_merge(void * array, void * source, size_t offset);
|
|
void bit_array_mask(void * array, void * source, size_t offset);
|
|
|
|
#endif
|