]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_ogg.c
"soundlist" now tells you if a sound is streamed and whether it is mono or stereo
[xonotic/darkplaces.git] / snd_ogg.c
index 18c500f77942324c0f74da24068882abffa2ff68..6c78a6768f8594d25fa9858d3fadbe6a6fed0ec6 100644 (file)
--- a/snd_ogg.c
+++ b/snd_ogg.c
@@ -555,6 +555,7 @@ qboolean OGG_LoadVorbisFile (const char *filename, sfx_t *s)
                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
@@ -590,6 +591,7 @@ qboolean OGG_LoadVorbisFile (const char *filename, sfx_t *s)
                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;