From a14f39ea06a458e6b3b70e0428264967847da7f4 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 19 Nov 2018 04:11:21 -0800 Subject: Make ll_ringbuffer_write/read take void*/const void* --- Alc/backends/dsound.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Alc/backends/dsound.cpp') diff --git a/Alc/backends/dsound.cpp b/Alc/backends/dsound.cpp index 6a8b0754..085dab90 100644 --- a/Alc/backends/dsound.cpp +++ b/Alc/backends/dsound.cpp @@ -893,7 +893,7 @@ void ALCdsoundCapture_stop(ALCdsoundCapture *self) ALCenum ALCdsoundCapture_captureSamples(ALCdsoundCapture *self, ALCvoid *buffer, ALCuint samples) { - ll_ringbuffer_read(self->Ring, reinterpret_cast(buffer), samples); + ll_ringbuffer_read(self->Ring, buffer, samples); return ALC_NO_ERROR; } @@ -921,11 +921,9 @@ ALCuint ALCdsoundCapture_availableSamples(ALCdsoundCapture *self) } if(SUCCEEDED(hr)) { - ll_ringbuffer_write(self->Ring, reinterpret_cast(ReadPtr1), - ReadCnt1/FrameSize); + ll_ringbuffer_write(self->Ring, ReadPtr1, ReadCnt1/FrameSize); if(ReadPtr2 != nullptr) - ll_ringbuffer_write(self->Ring, reinterpret_cast(ReadPtr2), - ReadCnt2/FrameSize); + ll_ringbuffer_write(self->Ring, ReadPtr2, ReadCnt2/FrameSize); hr = self->DSCbuffer->Unlock(ReadPtr1, ReadCnt1, ReadPtr2, ReadCnt2); self->Cursor = (LastCursor+ReadCnt1+ReadCnt2) % BufferBytes; } -- cgit v1.2.3