mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- Some minor changes to DUMB to match http://kode54.foobar2000.org/foo_dumb-dumb-lib_source.rar
dated 2009-10-18. This version also added DSMI AMF support, but since I can't find a single song in this format, I'll hold off on including that unless somebody specifically requests it. SVN r2201 (trunk)
This commit is contained in:
parent
e4be782e14
commit
5a72e8d20e
4 changed files with 3 additions and 6 deletions
|
@ -58,7 +58,7 @@ int32 dumb_resample(DUMB_RESAMPLER *resampler, sample_t *dst, int32 dst_size, VO
|
|||
|
||||
done = 0;
|
||||
dt = (int)(delta * 65536.0 + 0.5);
|
||||
if (dt == 0) return 0;
|
||||
if (dt == 0 || dt == 0x80000000) return 0;
|
||||
SET_VOLUME_VARIABLES;
|
||||
|
||||
if (VOLUMES_ARE_ZERO) dst = NULL;
|
||||
|
|
|
@ -24,9 +24,6 @@
|
|||
#include "internal/it.h"
|
||||
#include "internal/riff.h"
|
||||
|
||||
DUH *dumb_read_riff_amff( struct riff * stream );
|
||||
DUH *dumb_read_riff_am( struct riff * stream );
|
||||
|
||||
static int it_riff_am_process_sample( IT_SAMPLE * sample, const unsigned char * data, int len, int ver )
|
||||
{
|
||||
int header_length;
|
||||
|
|
|
@ -291,7 +291,7 @@ static int it_old_psm_read_patterns(IT_PATTERN * pattern, DUMBFILE * f, int num,
|
|||
if (channel >= chans)
|
||||
{
|
||||
//channel = 0;
|
||||
goto error_fb;
|
||||
//goto error_fb;
|
||||
}
|
||||
if (flags & 0x80) {
|
||||
if ((*ptr < 60) && (channel < pchans)) {
|
||||
|
|
|
@ -1271,7 +1271,7 @@ DUH *DUMBEXPORT dumb_read_psm_quick(DUMBFILE *f, int subsong)
|
|||
if ( ver )
|
||||
{
|
||||
tag[2][0] = "FORMATVERSION";
|
||||
sprintf(version, "%d", ver);
|
||||
itoa(ver, version, 10);
|
||||
tag[2][1] = (const char *) &version;
|
||||
++n_tags;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue