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.
|
inlinevirtualinherited |
provides the actual input AudioInfo
Implements AudioInfoSupport.
Reimplemented in CodecNOP, and BinaryContainerEncoder.
provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream
Reimplemented in PureDataStream, PWMAudioOutput, ChannelFormatConverterStreamT< T >, ChannelFormatConverterStream, NumberFormatConverterStreamT< TFrom, TTo >, NumberFormatConverterStream, FormatConverterStream, Pipeline, and ResampleStream.
|
inlinevirtual |
Implements AudioWriter.
Reimplemented in AACEncoderFDK.
|
inlinevirtual |
Implements AudioWriter.
Provides the mime type of the encoded result.
Implements AudioEncoder.
Implements AudioWriter.
Defines the sample rate, number of channels and bits per sample.
Implements AudioWriter.
Reimplemented in MP3EncoderLAME, EncoderBasic, FLACEncoder, OpusAudioEncoder, WAVEncoder, CodecNOP, G7xxEncoder, BinaryContainerEncoder, and OggContainerEncoder.
Implements AudioWriter.
Implements AudioWriter.