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:
Randy Heit 2010-03-07 04:38:02 +00:00
parent e4be782e14
commit 5a72e8d20e
4 changed files with 3 additions and 6 deletions

View file

@ -58,7 +58,7 @@ int32 dumb_resample(DUMB_RESAMPLER *resampler, sample_t *dst, int32 dst_size, VO
done = 0; done = 0;
dt = (int)(delta * 65536.0 + 0.5); dt = (int)(delta * 65536.0 + 0.5);
if (dt == 0) return 0; if (dt == 0 || dt == 0x80000000) return 0;
SET_VOLUME_VARIABLES; SET_VOLUME_VARIABLES;
if (VOLUMES_ARE_ZERO) dst = NULL; if (VOLUMES_ARE_ZERO) dst = NULL;

View file

@ -24,9 +24,6 @@
#include "internal/it.h" #include "internal/it.h"
#include "internal/riff.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 ) static int it_riff_am_process_sample( IT_SAMPLE * sample, const unsigned char * data, int len, int ver )
{ {
int header_length; int header_length;

View file

@ -291,7 +291,7 @@ static int it_old_psm_read_patterns(IT_PATTERN * pattern, DUMBFILE * f, int num,
if (channel >= chans) if (channel >= chans)
{ {
//channel = 0; //channel = 0;
goto error_fb; //goto error_fb;
} }
if (flags & 0x80) { if (flags & 0x80) {
if ((*ptr < 60) && (channel < pchans)) { if ((*ptr < 60) && (channel < pchans)) {

View file

@ -1271,7 +1271,7 @@ DUH *DUMBEXPORT dumb_read_psm_quick(DUMBFILE *f, int subsong)
if ( ver ) if ( ver )
{ {
tag[2][0] = "FORMATVERSION"; tag[2][0] = "FORMATVERSION";
sprintf(version, "%d", ver); itoa(ver, version, 10);
tag[2][1] = (const char *) &version; tag[2][1] = (const char *) &version;
++n_tags; ++n_tags;
} }