mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-25 05:21:02 +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)
61 lines
1.9 KiB
C
61 lines
1.9 KiB
C
/* _______ ____ __ ___ ___
|
|
* \ _ \ \ / \ / \ \ / / ' ' '
|
|
* | | \ \ | | || | \/ | . .
|
|
* | | | | | | || ||\ /| |
|
|
* | | | | | | || || \/ | | ' ' '
|
|
* | | | | | | || || | | . .
|
|
* | |_/ / \ \__// || | |
|
|
* /_______/ynamic \____/niversal /__\ /____\usic /| . . ibliotheque
|
|
* / \
|
|
* / . \
|
|
* internal/dumb.h - DUMB's internal declarations. / / \ \
|
|
* | < / \_
|
|
* This header file provides access to the | \/ /\ /
|
|
* internal structure of DUMB, and is liable \_ / > /
|
|
* to change, mutate or cease to exist at any | \ / /
|
|
* moment. Include it at your own peril. | ' /
|
|
* \__/
|
|
* ...
|
|
*
|
|
* Seriously. You don't need access to anything in this file. All right, you
|
|
* probably do actually. But if you use it, you will be relying on a specific
|
|
* version of DUMB, so please check DUMB_VERSION defined in dumb.h. Please
|
|
* contact the authors so that we can provide a public API for what you need.
|
|
*/
|
|
|
|
#ifndef INTERNAL_DUMB_H
|
|
#define INTERNAL_DUMB_H
|
|
|
|
|
|
typedef struct DUH_SIGTYPE_DESC_LINK
|
|
{
|
|
struct DUH_SIGTYPE_DESC_LINK *next;
|
|
DUH_SIGTYPE_DESC *desc;
|
|
}
|
|
DUH_SIGTYPE_DESC_LINK;
|
|
|
|
|
|
typedef struct DUH_SIGNAL
|
|
{
|
|
sigdata_t *sigdata;
|
|
DUH_SIGTYPE_DESC *desc;
|
|
}
|
|
DUH_SIGNAL;
|
|
|
|
|
|
struct DUH
|
|
{
|
|
int32 length;
|
|
|
|
int n_tags;
|
|
char *(*tag)[2];
|
|
|
|
int n_signals;
|
|
DUH_SIGNAL **signal;
|
|
};
|
|
|
|
|
|
DUH_SIGTYPE_DESC *_dumb_get_sigtype_desc(int32 type);
|
|
|
|
|
|
#endif /* INTERNAL_DUMB_H */
|