aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/dsound.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/dsound.cpp
parentc01743fe5df8ba4778950176ea38d95c65f25309 (diff)
Make ll_ringbuffer_write/read take void*/const void*
Diffstat (limited to 'Alc/backends/dsound.cpp')
-rw-r--r--Alc/backends/dsound.cpp8
1 files changed, 3 insertions, 5 deletions
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<char*>(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<const char*>(ReadPtr1),
- ReadCnt1/FrameSize);
+ ll_ringbuffer_write(self->Ring, ReadPtr1, ReadCnt1/FrameSize);
if(ReadPtr2 != nullptr)
- ll_ringbuffer_write(self->Ring, reinterpret_cast<const char*>(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;
}