]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_win.c
implemented 7.1 audio, only works with SDL (attempted ALSA support but ALSA doesn...
[xonotic/darkplaces.git] / snd_win.c
index 2752446fb9ba3c2e3c7373d22037ab1e36889733..0f62112c519daaf3260630b7be6683037c7bcea4 100644 (file)
--- a/snd_win.c
+++ b/snd_win.c
@@ -397,6 +397,7 @@ sndinitstat SNDDMA_InitDirect (void)
        pDSBuf->lpVtbl->Play(pDSBuf, 0, 0, DSBPLAY_LOOPING);
 
        shm->samples = gSndBufSize / shm->format.width;
+       shm->sampleframes = shm->samples / shm->format.channels;
        shm->samplepos = 0;
        shm->buffer = (unsigned char *) lpData;
 
@@ -527,6 +528,7 @@ qboolean SNDDMA_InitWav (void)
        }
 
        shm->samples = gSndBufSize / shm->format.width;
+       shm->sampleframes = shm->samples / shm->format.channels;
        shm->samplepos = 0;
        shm->buffer = (unsigned char *) lpData;