|
arduino-audio-tools
|
ConverterStream Helper class which implements the readBytes with the help of write. More...
#include <AudioIO.h>
Public Member Functions | |
| void | begin (T *transform, Stream *source) |
| setup of the TransformationReader class | |
| void | end () |
| size_t | readBytes (uint8_t *data, size_t len) |
| void | resizeReadBuffer (int size) |
| Defines the read buffer size for individual reads. | |
| void | resizeResultQueue (int size) |
| Defines the queue size for result. | |
| void | setResultQueueFactor (int factor) |
| Defines the queue size dependent on the read size. | |
Protected Member Functions | |
| void | restoreOutput (Print *out) |
| restores the original output in the converter class | |
| Print * | setupOutput () |
Protected Attributes | |
| bool | active = false |
| Vector< uint8_t > | buffer {0} |
| Stream * | p_stream = nullptr |
| T * | p_transform = nullptr |
| QueueStream< uint8_t > | result_queue {result_queue_buffer} |
| RingBuffer< uint8_t > | result_queue_buffer {0} |
| int | result_queue_factor = 5 |
ConverterStream Helper class which implements the readBytes with the help of write.
| T | class name of the original transformer stream |
setup of the TransformationReader class
| transform | The original transformer stream |
| source | The data source of the data to be converted the requested converted bytes |
Defines the read buffer size for individual reads.
restores the original output in the converter class
| out |
Defines the queue size dependent on the read size.
Makes sure that the data is written to the array
| data |
|
protected |
|
protected |