arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
audio_tools::CopyEncoder Class Reference

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

#include <CodecCopy.h>

Inheritance diagram for audio_tools::CopyEncoder:
audio_tools::AudioEncoder audio_tools::AudioWriter

Public Member Functions

 CopyEncoder (Print &out_stream)
 
 CopyEncoder (Print &out_stream, AudioBaseInfoDependent &bi)
 
AudioBaseInfo audioInfo ()
 
void begin ()
 
void end ()
 
const char * mime ()
 
 operator bool ()
 
void setAudioInfo (AudioBaseInfo ai)
 
void setNotifyAudioChange (AudioBaseInfoDependent &bi)
 
virtual void setOutputStream (Print &out_stream)
 
size_t write (const void *data, size_t len)
 
- Public Member Functions inherited from audio_tools::AudioEncoder
 AudioEncoder (AudioEncoder const &)=delete
 
virtual const char * mime ()=0
 
AudioEncoderoperator= (AudioEncoder const &)=delete
 
virtual void begin ()=0
 
virtual void end ()=0
 
virtual operator bool ()=0
 
virtual void setAudioInfo (AudioBaseInfo from)=0
 
virtual void setOutputStream (Print &out_stream)=0
 
virtual size_t write (const void *in_ptr, size_t in_size)=0
 

Protected Attributes

AudioBaseInfo info
 
Printpt_print =nullptr
 

Detailed Description

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

Author
Phil Schatzmann

Member Function Documentation

◆ begin()

void audio_tools::CopyEncoder::begin ( )
inlinevirtual

◆ end()

void audio_tools::CopyEncoder::end ( )
inlinevirtual

◆ mime()

const char * audio_tools::CopyEncoder::mime ( )
inlinevirtual

◆ operator bool()

audio_tools::CopyEncoder::operator bool ( )
inlinevirtual

◆ setAudioInfo()

void audio_tools::CopyEncoder::setAudioInfo ( AudioBaseInfo  ai)
inlinevirtual

◆ setOutputStream()

virtual void audio_tools::CopyEncoder::setOutputStream ( Print out_stream)
inlinevirtual

◆ write()

size_t audio_tools::CopyEncoder::write ( const void *  data,
size_t  len 
)
inlinevirtual

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