Report buffer fill level (#52)

Add method to get the current buffer fill level (for real-time display/etc.)
This commit is contained in:
h3ndrik authored and Earle F. Philhower, III committed 2018-03-25 12:14:08 -07:00
1 parent 32cbbfed45
commit e3a3f2b278
2 files changed
+7

No files matched your search

+5
View File
@@ -85,6 +85,11 @@ uint32_t AudioFileSourceBuffer::getPos()
return src->getPos();
}
uint32_t AudioFileSourceBuffer::getFillLevel()
{
return length;
}
uint32_t AudioFileSourceBuffer::read(void *data, uint32_t len)
{
if (!buffer) return src->read(data, len);