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/alsa.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/backends/alsa.cpp') diff --git a/Alc/backends/alsa.cpp b/Alc/backends/alsa.cpp index c0ceb4f7..97b2e965 100644 --- a/Alc/backends/alsa.cpp +++ b/Alc/backends/alsa.cpp @@ -1065,8 +1065,8 @@ ALCenum ALCcaptureAlsa_open(ALCcaptureAlsa *self, const ALCchar *name) if(needring) { - self->mRing.reset(ll_ringbuffer_create(device->UpdateSize*device->NumUpdates, - device->frameSizeFromFmt(), false)); + self->mRing = CreateRingBuffer(device->UpdateSize*device->NumUpdates, + device->frameSizeFromFmt(), false); if(!self->mRing) { ERR("ring buffer create failed\n"); -- cgit v1.2.3