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/coreaudio.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Alc/backends/coreaudio.cpp') diff --git a/Alc/backends/coreaudio.cpp b/Alc/backends/coreaudio.cpp index 158331f1..ff02a706 100644 --- a/Alc/backends/coreaudio.cpp +++ b/Alc/backends/coreaudio.cpp @@ -420,8 +420,7 @@ static OSStatus ALCcoreAudioCapture_RecordProc(void *inRefCon, return err; } - ll_ringbuffer_write(self->ring, static_cast(self->bufferList->mBuffers[0].mData), - inNumberFrames); + ll_ringbuffer_write(self->ring, self->bufferList->mBuffers[0].mData, inNumberFrames); return noErr; } @@ -433,7 +432,7 @@ static OSStatus ALCcoreAudioCapture_ConvertCallback(AudioConverterRef UNUSED(inA ALCcoreAudioCapture *self = reinterpret_cast(inUserData); // Read from the ring buffer and store temporarily in a large buffer - ll_ringbuffer_read(self->ring, static_cast(self->resampleBuffer), *ioNumberDataPackets); + ll_ringbuffer_read(self->ring, self->resampleBuffer, *ioNumberDataPackets); // Set the input data ioData->mNumberBuffers = 1; -- cgit v1.2.3