Skip to content

Commit 47854d9

Browse files
committed
MeasuringStream
1 parent c180443 commit 47854d9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/AudioTools/CoreAudio/AudioStreams.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,12 @@ class MeasuringStream : public ModifyingStream {
792792
return estimatedTotalTimeFor(totalBytes) -timeSinceBegin();
793793
}
794794

795+
/// Alternative update method: e.g report actual file positon
796+
void setProcessedBytes(uint32_t pos) {
797+
if (pos < total_bytes_since_begin) begin();
798+
total_bytes_since_begin = pos;
799+
}
800+
795801
protected:
796802
int max_count=0;
797803
int count=0;

0 commit comments

Comments
 (0)