From d2e02eccbe0f8694c6357cc167c572429329d5d9 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 15 Sep 2004 03:11:07 +0000 Subject: [PATCH] gcc warnings = gone git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@223 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/snd_dma.c | 2 +- engine/client/snd_mix.c | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/engine/client/snd_dma.c b/engine/client/snd_dma.c index d6e81486f..acc97d9d7 100644 --- a/engine/client/snd_dma.c +++ b/engine/client/snd_dma.c @@ -977,7 +977,7 @@ void S_ClearBuffer (soundcardinfo_t *sc) reps = 0; - while ((hresult = sc->pDSBuf->lpVtbl->Lock(sc->pDSBuf, 0, sc->gSndBufSize, &pData, &dwSize, NULL, NULL, 0)) != DS_OK) + while ((hresult = sc->pDSBuf->lpVtbl->Lock(sc->pDSBuf, 0, sc->gSndBufSize, (void**)&pData, &dwSize, NULL, NULL, 0)) != DS_OK) { if (hresult != DSERR_BUFFERLOST) { diff --git a/engine/client/snd_mix.c b/engine/client/snd_mix.c index 2ca3cb567..05701808e 100644 --- a/engine/client/snd_mix.c +++ b/engine/client/snd_mix.c @@ -90,8 +90,8 @@ void S_TransferStereo16 (soundcardinfo_t *sc, int endtime) { reps = 0; - while ((hresult = sc->pDSBuf->lpVtbl->Lock(sc->pDSBuf, 0, sc->gSndBufSize, &pbuf, &dwSize, - &pbuf2, &dwSize2, 0)) != DS_OK) + while ((hresult = sc->pDSBuf->lpVtbl->Lock(sc->pDSBuf, 0, sc->gSndBufSize, (void**)&pbuf, &dwSize, + (void**)&pbuf2, &dwSize2, 0)) != DS_OK) { if (hresult != DSERR_BUFFERLOST) { @@ -213,8 +213,8 @@ void S_Transfer4Speaker16 (soundcardinfo_t *sc, int endtime) { reps = 0; - while ((hresult = sc->pDSBuf->lpVtbl->Lock(sc->pDSBuf, 0, sc->gSndBufSize, &pbuf, &dwSize, - &pbuf2, &dwSize2, 0)) != DS_OK) + while ((hresult = sc->pDSBuf->lpVtbl->Lock(sc->pDSBuf, 0, sc->gSndBufSize, (void**)&pbuf, &dwSize, + (void**)&pbuf2, &dwSize2, 0)) != DS_OK) { if (hresult != DSERR_BUFFERLOST) { @@ -357,8 +357,8 @@ void S_Transfer6Speaker16 (soundcardinfo_t *sc, int endtime) { reps = 0; - while ((hresult = sc->pDSBuf->lpVtbl->Lock(sc->pDSBuf, 0, sc->gSndBufSize, &pbuf, &dwSize, - &pbuf2, &dwSize2, 0)) != DS_OK) + while ((hresult = sc->pDSBuf->lpVtbl->Lock(sc->pDSBuf, 0, sc->gSndBufSize, (void**)&pbuf, &dwSize, + (void**)&pbuf2, &dwSize2, 0)) != DS_OK) { if (hresult != DSERR_BUFFERLOST) { @@ -463,8 +463,8 @@ void S_TransferPaintBuffer(soundcardinfo_t *sc, int endtime) { reps = 0; - while ((hresult = sc->pDSBuf->lpVtbl->Lock(sc->pDSBuf, 0, sc->gSndBufSize, &pbuf, &dwSize, - &pbuf2,&dwSize2, 0)) != DS_OK) + while ((hresult = sc->pDSBuf->lpVtbl->Lock(sc->pDSBuf, 0, sc->gSndBufSize, (void**)&pbuf, &dwSize, + (void**)&pbuf2,&dwSize2, 0)) != DS_OK) { if (hresult != DSERR_BUFFERLOST) {