aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-02-07 10:08:27 -0800
committerChris Robinson <[email protected]>2015-02-07 10:08:27 -0800
commitf5dd5c13303f4396e1d03868898ad06d1b73ed4b (patch)
tree3eb36089a280c8520d3a9b74170e054f90e5a447 /Alc
parent4a5daa2e9126a4739e6e4ab077c3c5387359e9e0 (diff)
Fix some ringbuffer function comments
Diffstat (limited to 'Alc')
-rw-r--r--Alc/alcRing.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/alcRing.c b/Alc/alcRing.c
index c7cbe283..e9a40a12 100644
--- a/Alc/alcRing.c
+++ b/Alc/alcRing.c
@@ -199,16 +199,16 @@ void ll_ringbuffer_reset(ll_ringbuffer_t *rb)
memset(rb->buf, 0, rb->size*rb->elem_size);
}
-/* Return the number of bytes available for reading. This is the number of
- * bytes in front of the read pointer and behind the write pointer. */
+/* Return the number of elements available for reading. This is the number of
+ * elements in front of the read pointer and behind the write pointer. */
size_t ll_ringbuffer_read_space(const ll_ringbuffer_t *rb)
{
size_t w = rb->write_ptr;
size_t r = rb->read_ptr;
return (rb->size+w-r) & rb->size_mask;
}
-/* Return the number of bytes available for writing. This is the number of
- * bytes in front of the write pointer and behind the read pointer. */
+/* Return the number of elements available for writing. This is the number of
+ * elements in front of the write pointer and behind the read pointer. */
size_t ll_ringbuffer_write_space(const ll_ringbuffer_t *rb)
{
size_t w = rb->write_ptr;