michaeltyson / TPCircularBuffer

A simple, fast circular buffer implementation
http://atastypixel.com/blog/a-simple-fast-circular-buffer-implementation-for-audio-processing/
839 stars 141 forks source link

TPCircularBuffer `fillCount` Swift access #21

Closed RichAppz closed 6 years ago

RichAppz commented 6 years ago

This might be a stupid question but I am currently creating an app that requires the use of TPCircularBuffer but I can't see to get access to the fillCount - could you guide me in the right direction.

Thanks in advance

pablogeek commented 6 years ago

I have the same issue, since the latest update. any thoughts? @RichAppz

pablogeek commented 6 years ago

@michaeltyson would be nice if you can provide some help :)

michaeltyson commented 6 years ago

Use TPCircularBufferTail to get a pointer to the buffer to read from, and it'll tell you how many bytes you can read (or TPCircularBufferHead for writing, and it'll tell you how much space there is)