arduino-audio-tools
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AudioDecoder Class Referenceabstract

Docoding of encoded audio into PCM data. More...

#include <AudioEncoded.h>

Inheritance diagram for AudioDecoder:
AudioWriter AudioInfoSource AACDecoderFAAD AACDecoderFDK AACDecoderHelix ADPCMDecoderXQ ADTSDecoder APTXDecoder AVIDecoder AudioDecoderExt BinaryContainerDecoder Codec2Decoder CodecNOP ContainerMP4 CopyDecoder DecoderBase64 DecoderBasic DecoderFloat DecoderFromStreaming DecoderHelix DecoderL16 DecoderL8 G722Decoder G7xxDecoder GGWaveDecoder GSMDecoder ILBCDecoder LC3Decoder MP3DecoderHelix MP3DecoderMAD MP3DecoderMini MTSDecoder MTSDecoder OggContainerDecoder OpusAudioDecoder SBCDecoder WAVDecoder WavIMADecoder

Public Member Functions

 AudioDecoder (AudioDecoder const &)=delete
 
virtual AudioInfo audioInfo ()
 
virtual void begin ()=0
 
virtual void begin (AudioInfo info)
 
virtual void end ()=0
 
virtual bool isResultPCM ()
 If true, the decoding result is PCM data.
 
virtual operator bool ()=0
 
AudioDecoderoperator= (AudioDecoder const &)=delete
 
virtual void setAudioInfo (AudioInfo from) override
 for most decoders this is not needed
 
void setNotifyAudioChange (AudioInfoSupport &notify) override
 Registers an object that is notified if the audio format is changing.
 
virtual void setOutput (AudioOutput &out_stream)
 Defines where the decoded result is written to.
 
virtual void setOutput (AudioStream &out_stream)
 Defines where the decoded result is written to.
 
virtual void setOutput (Print &out_stream) override
 Defines where the decoded result is written to.
 
virtual size_t write (const void *in_ptr, size_t in_size)=0
 

Protected Member Functions

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

Protected Attributes

AudioInfo info
 
AudioInfoSupportp_notify = nullptr
 
Printp_print = nullptr
 

Detailed Description

Docoding of encoded audio into PCM data.

Author
Phil Schatzmann

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