aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/portaudio.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-19 04:11:21 -0800
committerChris Robinson <[email protected]>2018-11-19 04:11:21 -0800
commita14f39ea06a458e6b3b70e0428264967847da7f4 (patch)
tree9177828a3223568349a7e1b9e01560b7a45d181d /Alc/backends/portaudio.cpp
parentc01743fe5df8ba4778950176ea38d95c65f25309 (diff)
Make ll_ringbuffer_write/read take void*/const void*
Diffstat (limited to 'Alc/backends/portaudio.cpp')
-rw-r--r--Alc/backends/portaudio.cpp4
1 files changed, 2 insertions, 2 deletions
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<const char*>(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<char*>(buffer), samples);
+ ll_ringbuffer_read(self->ring, buffer, samples);
return ALC_NO_ERROR;
}