Skip to content

Commit 070dc1c

Browse files
committed
TimeInfoStream
1 parent e8a6f56 commit 070dc1c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Experiments/TimeInfoStream.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ class TimeInfoStream : public AudioStreamX {
6767
return isActive();
6868
}
6969

70-
/// Provides only data for the indicated start and end time
70+
/// Provides only data for the indicated start and end time. Only supported for
71+
/// data which does not contain any heder information: so PCM, mp3 should work!
7172
size_t readBytes(uint8_t *buffer, size_t length) override {
7273
// if reading is not supported we stop
7374
if (p_stream==nullptr) return 0;
@@ -101,7 +102,8 @@ class TimeInfoStream : public AudioStreamX {
101102

102103
int availableForWrite() override { return p_print->availableForWrite(); }
103104

104-
/// Experimental: if used on mp3 you can set the ratio e.g. to 11
105+
/// Experimental: if used on mp3 you can set the compression ratio e.g. to 11 which will
106+
/// be used to approximate the time
105107
void setCompressionRatio(float ratio){
106108
compression_ratio = ratio;
107109
}

0 commit comments

Comments
 (0)