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

MP3 and AAC Decoder using libhelix: https://github.com/pschatzmann/arduino-libhelix. We dynamically create a MP3 or AAC decoder dependent on the provided audio format. More...

#include <CodecHelix.h>

Inheritance diagram for DecoderHelix:
AudioDecoder AudioWriter AudioInfoSource

Public Member Functions

 DecoderHelix (Print &out_stream)
 
 DecoderHelix (Print &out_stream, AudioInfoSupport &bi)
 
AudioInfo audioInfo ()
 
void begin ()
 Starts the processing.
 
virtual void begin (AudioInfo info)
 
void end ()
 Releases the reserved memory.
 
virtual bool isResultPCM ()
 If true, the decoding result is PCM data.
 
 operator bool ()
 checks if the class is active
 
virtual void setAudioInfo (AudioInfo from) override
 for most decoders this is not needed
 
void setNotifyAudioChange (AudioInfoSupport &bi)
 
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 &outStream)
 Defines the output Stream.
 
size_t write (const void *data, size_t len)
 Write mp3 data to decoder.
 

Protected Member Functions

void resetDecoder ()
 Deletes the decoder.
 
void setupDecoder (const byte *start)
 Defines the decoder based on the audio format.
 
void writeBlocking (Print *out, uint8_t *data, size_t len)
 

Protected Attributes

AudioInfo info
 
AudioInfo noInfo
 
AudioInfoSupportp_bi = nullptr
 
AudioDecoderp_decoder = nullptr
 
AudioInfoSupportp_notify = nullptr
 
Printp_out_stream = nullptr
 
Printp_print = nullptr
 

Detailed Description

MP3 and AAC Decoder using libhelix: https://github.com/pschatzmann/arduino-libhelix. We dynamically create a MP3 or AAC decoder dependent on the provided audio format.

Author
Phil Schatzmann

Member Function Documentation

◆ setNotifyAudioChange()

void setNotifyAudioChange ( AudioInfoSupport bi)
inlinevirtual

Defines the callback object to which the Audio information change is provided

Reimplemented from AudioDecoder.


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