arduino-audio-tools
|
Dummy Encoder which just copies the provided data to the output. More...
#include <CodecCopy.h>
Public Member Functions | |
CopyEncoder (Print &out_stream) | |
CopyEncoder (Print &out_stream, AudioInfoSupport &bi) | |
AudioInfo | audioInfo () |
provides the actual input AudioInfo | |
virtual AudioInfo | audioInfoOut () |
provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream | |
bool | begin () |
virtual bool | begin (AudioInfo info) |
void | end () |
const char * | mime () |
Provides the mime type of the encoded result. | |
operator bool () | |
void | setAudioInfo (AudioInfo from) override |
Defines the sample rate, number of channels and bits per sample. | |
virtual void | setOutput (Print &out_stream) |
size_t | write (const uint8_t *data, size_t len) |
Protected Member Functions | |
void | writeBlocking (Print *out, uint8_t *data, size_t len) |
Protected Attributes | |
AudioInfo | info |
Print * | pt_print =nullptr |
Dummy Encoder which just copies the provided data to the output.