{
size = sfx->mempool->totalsize;
total += size;
- Con_Printf("%c(%2db) %7i : %s\n", sfx->loopstart >= 0 ? 'L' : ' ', sfx->format.width * 8, size, sfx->name);
+ Con_Printf ("%c%c(%2db, %6s) %8i : %s\n",
+ (sfx->loopstart >= 0) ? 'L' : ' ',
+ (sfx->flags & SFXFLAG_STREAMED) ? 'S' : ' ',
+ sfx->format.width * 8,
+ (sfx->format.channels == 2) ? "stereo" : "mono",
+ size,
+ sfx->name);
}
}
Con_Printf("Total resident: %i\n", total);
s->format.width = 2; // We always work with 16 bits samples
s->format.channels = vi->channels;
s->loopstart = -1;
+ s->flags |= SFXFLAG_STREAMED;
s->total_length = (size_t)len / (vi->channels * 2) * (float)(shm->format.speed / vi->rate);
}
else
s->format.width = 2; // We always work with 16 bits samples
s->format.channels = vi->channels;
s->loopstart = -1;
+ s->flags &= ~SFXFLAG_STREAMED;
sb->length = ResampleSfx (buff, (size_t)done / (vi->channels * 2), &s->format, sb->data, s->name);
s->format.speed = shm->format.speed;
s->loopstart = -1;
else
s->loopstart = (double)info.loopstart * (double)shm->format.speed / (double)s->format.speed;
+ s->flags &= ~SFXFLAG_STREAMED;
#if BYTE_ORDER != LITTLE_ENDIAN
// We must convert the WAV data from little endian
#define SFXFLAG_NONE 0
#define SFXFLAG_SILENTLYMISSING (1 << 0) // if the sfx is missing and loaded with complain = false
#define SFXFLAG_USED (1 << 1)
+#define SFXFLAG_STREAMED (1 << 2) // informative only. You shouldn't need to know that
typedef struct snd_fetcher_s snd_fetcher_t;
typedef struct sfx_s