ConverterStream Helper class which implements the converting readBytes with the help of write.
More...
#include <ResampleStream.h>
template<class T>
class audio_tools::TransformationReader< T >
ConverterStream Helper class which implements the converting readBytes with the help of write.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
- Template Parameters
-
T | class name of the original transformer stream |
◆ begin()
void begin |
( |
T * |
transform, |
|
|
Stream * |
source |
|
) |
| |
|
inline |
setup of the TransformationReader class
- Parameters
-
transform | The original transformer stream |
byteFactor | The factor of how much more data we need to read to get the requested converted bytes |
source | The data source of the data to be converted |
◆ restoreOutput()
void restoreOutput |
( |
Print * |
out | ) |
|
|
inlineprotected |
restores the original output in the converter class
- Parameters
-
◆ setupOutput()
Print* setupOutput |
( |
uint8_t * |
data, |
|
|
size_t |
byteCount |
|
) |
| |
|
inlineprotected |
Makes sure that the data is written to the array
- Parameters
-
- Returns
- original output of the converter class
The documentation for this class was generated from the following file: