File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -595,13 +595,13 @@ class EncodedAudioStream : public EncodedAudioOutput {
595
595
};
596
596
597
597
/* *
598
- * @brief Facade class which lets an AudioWriter behave like a Print
598
+ * @brief Adapter class which lets an AudioWriter behave like a Print
599
599
* @author Phil Schatzmann
600
600
* @copyright GPLv3
601
601
*
602
602
*/
603
603
604
- class AudioWriterToAudioOutput : public AudioOutput {
604
+ class AudioWriterToAudioOutput : public AudioOutputAdapter {
605
605
public:
606
606
void setWriter (AudioWriter *writer) { p_writer = writer; }
607
607
size_t write (const uint8_t *in_ptr, size_t in_size) {
Original file line number Diff line number Diff line change @@ -292,11 +292,18 @@ class HexDumpOutput : public AudioOutput {
292
292
// legacy name
293
293
using HexDumpStream = HexDumpOutput;
294
294
295
+ /* *
296
+ * @brief Base class for Output Adpapters
297
+ *
298
+ */
299
+ class AudioOutputAdapter : public AudioOutput {
300
+ };
301
+
295
302
/* *
296
303
* @brief Wrapper which converts a AudioStream to a AudioOutput
297
304
* @ingroup tools
298
305
*/
299
- class AdapterAudioStreamToAudioOutput : public AudioOutput {
306
+ class AdapterAudioStreamToAudioOutput : public AudioOutputAdapter {
300
307
public:
301
308
AdapterAudioStreamToAudioOutput () = default ;
302
309
@@ -328,7 +335,7 @@ class AdapterAudioStreamToAudioOutput : public AudioOutput {
328
335
* @brief Wrapper which converts a Print to a AudioOutput
329
336
* @ingroup tools
330
337
*/
331
- class AdapterPrintToAudioOutput : public AudioOutput {
338
+ class AdapterPrintToAudioOutput : public AudioOutputAdapter {
332
339
public:
333
340
AdapterPrintToAudioOutput (Print &print){
334
341
p_print = &print;
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ class TransformationReader {
59
59
int availableForWrite () { return print_to_array.availableForWrite (); }
60
60
61
61
protected:
62
- class AdapterPrintToArray : public AudioOutput {
62
+ class AdapterPrintToArray : public AudioOutputAdapter {
63
63
public:
64
64
void begin (uint8_t *array, size_t data_len) {
65
65
TRACED ();
You can’t perform that action at this time.
0 commit comments