arduino-audio-tools
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CopyEncoder Class Reference

Dummy Encoder which just copies the provided data to the output. More...

#include <CodecCopy.h>

Inheritance diagram for CopyEncoder:
AudioEncoder AudioWriter AudioInfoSupport

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 void *data, size_t len)
 

Protected Member Functions

void writeBlocking (Print *out, uint8_t *data, size_t len)
 

Protected Attributes

AudioInfo info
 
Printpt_print =nullptr
 

Detailed Description

Dummy Encoder which just copies the provided data to the output.

Author
Phil Schatzmann

The documentation for this class was generated from the following file: