arduino-audio-tools
|
EncoderFloats - Encodes 16 bit PCM data stream to floats data. More...
#include <CodecFloat.h>
Public Member Functions | |
EncoderFloat (Print &out) | |
virtual void | begin () override |
starts the processing using the actual RAWAudioInfo | |
virtual void | begin (AudioInfo info) |
void | begin (Print &out) |
starts the processing | |
void | end () override |
stops the processing | |
bool | isOpen () |
const char * | mime () override |
Provides "audio/pcm". | |
operator bool () override | |
virtual void | setAudioInfo (AudioInfo from) override |
We actually do nothing with this. | |
void | setOutput (Print &out_stream) override |
Defines the output Stream. | |
virtual size_t | write (const void *in_ptr, size_t in_size) override |
Converts data from int16_t to float. | |
Protected Member Functions | |
void | writeBlocking (Print *out, uint8_t *data, size_t len) |
Protected Attributes | |
Vector< float > | buffer |
volatile bool | is_open |
Print * | p_print =nullptr |
EncoderFloats - Encodes 16 bit PCM data stream to floats data.