@@ -66,7 +66,7 @@ class BufferedTaskStream : public AudioStream {
66
66
67
67
// / reads a byte - to be avoided
68
68
virtual int read () override {
69
- if (!ready) return -1 ;
69
+ // if (!ready) return -1;
70
70
int result = -1 ;
71
71
xSemaphoreTake (mutex, portMAX_DELAY);
72
72
result = buffers.read ();
@@ -76,7 +76,7 @@ class BufferedTaskStream : public AudioStream {
76
76
77
77
// / peeks a byte - to be avoided
78
78
virtual int peek () override {
79
- if (!ready) return -1 ;
79
+ // if (!ready) return -1;
80
80
int result = -1 ;
81
81
xSemaphoreTake (mutex, portMAX_DELAY);
82
82
result = buffers.peek ();
@@ -86,7 +86,7 @@ class BufferedTaskStream : public AudioStream {
86
86
87
87
// / Use this method !!
88
88
virtual size_t readBytes ( uint8_t *data, size_t length) override {
89
- if (!ready) return 0 ;
89
+ // if (!ready) return 0;
90
90
size_t result = 0 ;
91
91
xSemaphoreTake (mutex, portMAX_DELAY);
92
92
result = buffers.readArray (data, length);
@@ -99,7 +99,7 @@ class BufferedTaskStream : public AudioStream {
99
99
100
100
// / Returns the available bytes in the buffer: to be avoided
101
101
virtual int available () override {
102
- if (!ready) return 0 ;
102
+ // if (!ready) return 0;
103
103
int result = 0 ;
104
104
xSemaphoreTake (mutex, portMAX_DELAY);
105
105
result = buffers.available ();
0 commit comments