]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_win.c
ignore visofs errors on leaf 0 (solid), thanks to Vic for pointing out the problem...
[xonotic/darkplaces.git] / snd_win.c
index b8d5175399dfc1c2f1e8cc207bbd45426b93e661..5434e5dbd29fc180697e71e279c3757fa052623b 100644 (file)
--- a/snd_win.c
+++ b/snd_win.c
@@ -367,7 +367,7 @@ sndinitstat SNDDMA_InitDirect (void)
 // initialize the buffer
        reps = 0;
 
-       while ((hresult = pDSBuf->lpVtbl->Lock(pDSBuf, 0, gSndBufSize, &lpData, &dwSize, NULL, NULL, 0)) != DS_OK)
+       while ((hresult = pDSBuf->lpVtbl->Lock(pDSBuf, 0, gSndBufSize, (LPVOID*)&lpData, &dwSize, NULL, NULL, 0)) != DS_OK)
        {
                if (hresult != DSERR_BUFFERLOST)
                {
@@ -671,9 +671,7 @@ void SNDDMA_Submit(void)
        {
                if ( snd_completed == snd_sent )
                {
-#ifndef AKVERSION
                        Con_DPrintf ("Sound overrun\n");
-#endif
                        break;
                }
 
@@ -734,7 +732,7 @@ void *S_LockBuffer(void)
        {
                reps = 0;
 
-               while ((hresult = pDSBuf->lpVtbl->Lock(pDSBuf, 0, gSndBufSize, &dsound_pbuf, &dsound_dwSize, &dsound_pbuf2, &dsound_dwSize2, 0)) != DS_OK)
+               while ((hresult = pDSBuf->lpVtbl->Lock(pDSBuf, 0, gSndBufSize, (LPVOID*)&dsound_pbuf, &dsound_dwSize, (LPVOID*)&dsound_pbuf2, &dsound_dwSize2, 0)) != DS_OK)
                {
                        if (hresult != DSERR_BUFFERLOST)
                        {