Skip to content

Commit 9ad2abb

Browse files
committed
QueueStream: provide levelPercent()
1 parent 74f3418 commit 9ad2abb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/AudioTools/CoreAudio/BaseStream.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,9 @@ class QueueStream : public BaseStream {
400400
/// Returns true if active
401401
operator bool() { return active; }
402402

403+
/// Returns the fill level in percent
404+
int levelPercent() {return callback_buffer_ptr->levelPercent();}
405+
403406
protected:
404407
BaseBuffer<T> *callback_buffer_ptr;
405408
size_t active_limit = 0;

0 commit comments

Comments
 (0)