File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,8 @@ class TimeInfoStream : public AudioStreamX {
67
67
return isActive ();
68
68
}
69
69
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!
71
72
size_t readBytes (uint8_t *buffer, size_t length) override {
72
73
// if reading is not supported we stop
73
74
if (p_stream==nullptr ) return 0 ;
@@ -101,7 +102,8 @@ class TimeInfoStream : public AudioStreamX {
101
102
102
103
int availableForWrite () override { return p_print->availableForWrite (); }
103
104
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
105
107
void setCompressionRatio (float ratio){
106
108
compression_ratio = ratio;
107
109
}
You can’t perform that action at this time.
0 commit comments