mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Update ring buffer.
This commit is contained in:
@@ -63352,6 +63352,11 @@ MA_API void ma_ring_buffer_init(ma_uint32 capacity, ma_uint32 stride, ma_uint32
|
||||
return;
|
||||
}
|
||||
|
||||
if (capacity > 0x7FFFFFFF) {
|
||||
MA_ASSERT(!"Ring buffer capacity exceeds limit of 0x7FFFFFFF.");
|
||||
return;
|
||||
}
|
||||
|
||||
pRingBuffer->capacity = capacity;
|
||||
pRingBuffer->stride = stride;
|
||||
pRingBuffer->flags = flags;
|
||||
|
||||
Reference in New Issue
Block a user