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

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

#include <CodecCopy.h>

Inheritance diagram for audio_tools::CopyDecoder:
audio_tools::AudioDecoder audio_tools::AudioWriter audio_tools::AudioBaseInfoSource

Public Member Functions

 CopyDecoder (Print &out_stream)
 
 CopyDecoder (Print &out_stream, AudioBaseInfoDependent &bi)
 
AudioBaseInfo audioInfo ()
 
void begin ()
 
void end ()
 
virtual bool isResultPCM ()
 
 operator bool ()
 
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::AudioDecoder
 AudioDecoder (AudioDecoder const &)=delete
 
virtual AudioBaseInfo audioInfo ()=0
 
virtual bool isResultPCM ()
 
AudioDecoderoperator= (AudioDecoder const &)=delete
 
virtual void setAudioInfo (AudioBaseInfo from) override
 
virtual void setOutputStream (AudioPrint &out_stream)
 
virtual void setOutputStream (AudioStream &out_stream)
 
virtual void setOutputStream (Print &out_stream) override=0
 
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
 
virtual void setNotifyAudioChange (AudioBaseInfoDependent &bi)=0
 

Protected Attributes

Printpt_print =nullptr
 

Detailed Description

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

Author
Phil Schatzmann

Member Function Documentation

◆ audioInfo()

AudioBaseInfo audio_tools::CopyDecoder::audioInfo ( )
inlinevirtual

◆ begin()

void audio_tools::CopyDecoder::begin ( )
inlinevirtual

◆ end()

void audio_tools::CopyDecoder::end ( )
inlinevirtual

◆ isResultPCM()

virtual bool audio_tools::CopyDecoder::isResultPCM ( )
inlinevirtual

Reimplemented from audio_tools::AudioDecoder.

◆ operator bool()

audio_tools::CopyDecoder::operator bool ( )
inlinevirtual

◆ setNotifyAudioChange()

void audio_tools::CopyDecoder::setNotifyAudioChange ( AudioBaseInfoDependent bi)
inlinevirtual

◆ setOutputStream()

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

◆ write()

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

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