diff options
author | Chris Robinson <[email protected]> | 2018-12-27 12:55:43 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-27 12:55:43 -0800 |
commit | 1a4387d137acb57f69a2b5d073faf55d4a4c32ed (patch) | |
tree | 70b19a7ffa44c148c76996e3f715b0dff795dd4c /Alc/backends/oss.cpp | |
parent | 323cf58f02bd2a8a92006a5ee20014d2eb8ff3a9 (diff) |
Return unique_ptrs instead of raw pointers
For the ring buffer, channel converter, and sample converter.
Diffstat (limited to 'Alc/backends/oss.cpp')
-rw-r--r-- | Alc/backends/oss.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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"); |