@@ -94,7 +94,7 @@ class EncodedAudioOutput : public ModifyingOutput {
94
94
}
95
95
}
96
96
97
- void setOutput (Print &outputStream) { setOutput (&outputStream); }
97
+ void setOutput (Print &outputStream) override { setOutput (&outputStream); }
98
98
99
99
// / Defines the output
100
100
void setOutput (Print *outputStream) {
@@ -151,7 +151,7 @@ class EncodedAudioOutput : public ModifyingOutput {
151
151
}
152
152
153
153
// / Starts the processing - sets the status to active
154
- virtual bool begin (AudioInfo newInfo) {
154
+ virtual bool begin (AudioInfo newInfo) override {
155
155
cfg = newInfo;
156
156
return begin ();
157
157
}
@@ -194,7 +194,7 @@ class EncodedAudioOutput : public ModifyingOutput {
194
194
}
195
195
196
196
// / Returns true if status is active and we still have data to be processed
197
- operator bool () { return active; }
197
+ operator bool () override { return active; }
198
198
199
199
// / Provides the initialized decoder
200
200
AudioDecoder &decoder () { return *decoder_ptr; }
@@ -286,22 +286,22 @@ class EncodedAudioStream : public ReformatBaseStream {
286
286
287
287
void setOutput (Print *stream) { setOutput (*stream); }
288
288
289
- void setStream (AudioStream &stream) {
289
+ void setStream (AudioStream &stream) override {
290
290
ReformatBaseStream::setStream (stream);
291
291
enc_out.setOutput (&stream);
292
292
}
293
293
294
- void setStream (Stream &stream) {
294
+ void setStream (Stream &stream) override {
295
295
ReformatBaseStream::setStream (stream);
296
296
enc_out.setOutput (&stream);
297
297
}
298
298
299
- void setOutput (AudioOutput &stream) {
299
+ void setOutput (AudioOutput &stream) override {
300
300
ReformatBaseStream::setOutput (stream);
301
301
enc_out.setOutput (&stream);
302
302
}
303
303
304
- void setOutput (Print &out) {
304
+ void setOutput (Print &out) override {
305
305
ReformatBaseStream::setOutput (out);
306
306
enc_out.setOutput (&out);
307
307
}
@@ -316,26 +316,26 @@ class EncodedAudioStream : public ReformatBaseStream {
316
316
return begin ();
317
317
}
318
318
319
- bool begin () {
319
+ bool begin () override {
320
320
// is_output_notify = false;
321
321
setupReader ();
322
322
ReformatBaseStream::begin ();
323
323
return enc_out.begin (audioInfo ());
324
324
}
325
325
326
- void end () {
326
+ void end () override {
327
327
enc_out.end ();
328
328
reader.end ();
329
329
}
330
330
331
- int availableForWrite () { return enc_out.availableForWrite (); }
331
+ int availableForWrite () override { return enc_out.availableForWrite (); }
332
332
333
- size_t write (const uint8_t *data, size_t len) {
333
+ size_t write (const uint8_t *data, size_t len) override {
334
334
// addNotifyOnFirstWrite();
335
335
return enc_out.write (data, len);
336
336
}
337
337
338
- size_t readBytes (uint8_t *data, size_t len) {
338
+ size_t readBytes (uint8_t *data, size_t len) override {
339
339
return reader.readBytes (data, len);
340
340
}
341
341
@@ -344,7 +344,7 @@ class EncodedAudioStream : public ReformatBaseStream {
344
344
}
345
345
346
346
// / approx compression factor: e.g. mp3 is around 4
347
- float getByteFactor () { return byte_factor; }
347
+ float getByteFactor () override { return byte_factor; }
348
348
void setByteFactor (float factor) { byte_factor = factor; }
349
349
350
350
// / defines the size of the decoded frame in bytes
0 commit comments