aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ringbuffer.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-27 12:55:43 -0800
committerChris Robinson <[email protected]>2018-12-27 12:55:43 -0800
commit1a4387d137acb57f69a2b5d073faf55d4a4c32ed (patch)
tree70b19a7ffa44c148c76996e3f715b0dff795dd4c /Alc/ringbuffer.h
parent323cf58f02bd2a8a92006a5ee20014d2eb8ff3a9 (diff)
Return unique_ptrs instead of raw pointers
For the ring buffer, channel converter, and sample converter.
Diffstat (limited to 'Alc/ringbuffer.h')
-rw-r--r--Alc/ringbuffer.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/Alc/ringbuffer.h b/Alc/ringbuffer.h
index a2871859..317995b0 100644
--- a/Alc/ringbuffer.h
+++ b/Alc/ringbuffer.h
@@ -81,6 +81,7 @@ struct RingBuffer {
DEF_PLACE_NEWDEL()
};
+using RingBufferPtr = std::unique_ptr<RingBuffer>;
/**
@@ -88,9 +89,6 @@ struct RingBuffer {
* The number of elements is rounded up to the next power of two (even if it is
* already a power of two, to ensure the requested amount can be written).
*/
-RingBuffer *ll_ringbuffer_create(size_t sz, size_t elem_sz, int limit_writes);
-
-
-using RingBufferPtr = std::unique_ptr<RingBuffer>;
+RingBufferPtr CreateRingBuffer(size_t sz, size_t elem_sz, int limit_writes);
#endif /* RINGBUFFER_H */