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/portaudio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/backends/portaudio.cpp') diff --git a/Alc/backends/portaudio.cpp b/Alc/backends/portaudio.cpp index 1a74250e..1c87f2c8 100644 --- a/Alc/backends/portaudio.cpp +++ b/Alc/backends/portaudio.cpp @@ -377,7 +377,7 @@ int ALCportCapture_ReadCallback(const void *inputBuffer, void *UNUSED(outputBuff size_t writable = ll_ringbuffer_write_space(self->ring); if(framesPerBuffer > writable) framesPerBuffer = writable; - ll_ringbuffer_write(self->ring, static_cast(inputBuffer), framesPerBuffer); + ll_ringbuffer_write(self->ring, inputBuffer, framesPerBuffer); return 0; } @@ -472,7 +472,7 @@ ALCuint ALCportCapture_availableSamples(ALCportCapture *self) ALCenum ALCportCapture_captureSamples(ALCportCapture *self, ALCvoid *buffer, ALCuint samples) { - ll_ringbuffer_read(self->ring, static_cast(buffer), samples); + ll_ringbuffer_read(self->ring, buffer, samples); return ALC_NO_ERROR; } -- cgit v1.2.3