From 1a4387d137acb57f69a2b5d073faf55d4a4c32ed Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 27 Dec 2018 12:55:43 -0800 Subject: Return unique_ptrs instead of raw pointers For the ring buffer, channel converter, and sample converter. --- Alc/backends/oss.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Alc/backends/oss.cpp') diff --git a/Alc/backends/oss.cpp b/Alc/backends/oss.cpp index f6a75d12..ec9028eb 100644 --- a/Alc/backends/oss.cpp +++ b/Alc/backends/oss.cpp @@ -683,8 +683,7 @@ ALCenum ALCcaptureOSS_open(ALCcaptureOSS *self, const ALCchar *name) return ALC_INVALID_VALUE; } - self->mRing.reset(ll_ringbuffer_create(device->UpdateSize*device->NumUpdates, frameSize, - false)); + self->mRing = CreateRingBuffer(device->UpdateSize*device->NumUpdates, frameSize, false); if(!self->mRing) { ERR("Ring buffer create failed\n"); -- cgit v1.2.3