We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47854d9 commit c06b3baCopy full SHA for c06b3ba
src/AudioTools/CoreAudio/AudioStreams.h
@@ -792,10 +792,15 @@ class MeasuringStream : public ModifyingStream {
792
return estimatedTotalTimeFor(totalBytes) -timeSinceBegin();
793
}
794
795
- /// Alternative update method: e.g report actual file positon
796
- void setProcessedBytes(uint32_t pos) {
797
- if (pos < total_bytes_since_begin) begin();
+ /// Alternative update method: e.g report actual file positon: returns true if the file position was increased
+ bool setProcessedBytes(uint32_t pos) {
+ bool is_regular_update = true;
798
+ if (pos < total_bytes_since_begin) {
799
+ begin();
800
+ is_regular_update = false;
801
+ }
802
total_bytes_since_begin = pos;
803
+ return is_regular_update;
804
805
806
protected:
0 commit comments