File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -230,16 +230,21 @@ class AudioOutputAdapter : public AudioOutput {};
230
230
*/
231
231
class AdapterPrintToAudioOutput : public AudioOutputAdapter {
232
232
public:
233
- AdapterPrintToAudioOutput (Print &print) { p_print = &print; }
234
- void setAudioInfo (AudioInfo info) {}
233
+ AdapterPrintToAudioOutput () = default ;
234
+ AdapterPrintToAudioOutput (Print &print) { setStream (print); }
235
+ void setStream (Print& out) { p_print = &out; }
236
+ void setAudioInfo (AudioInfo info) { cfg = info;}
235
237
size_t write (const uint8_t *data, size_t len) {
236
238
return p_print->write (data, len);
237
239
}
238
240
// / If true we need to release the related memory in the destructor
239
241
virtual bool isDeletable () { return true ; }
240
242
243
+ AudioInfo audioInfo () {return cfg; }
244
+
241
245
protected:
242
246
Print *p_print = nullptr ;
247
+ AudioInfo cfg;
243
248
};
244
249
245
250
/* *
You can’t perform that action at this time.
0 commit comments