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

Decoder8Bit - Converts an 8 Bit Stream into 16Bits. More...

#include <Codec8Bit.h>

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

Public Member Functions

 Decoder8Bit ()
 Construct a new RAWDecoder object.
 
 Decoder8Bit (Print &out_stream, AudioBaseInfoDependent &bi)
 Construct a new RAWDecoder object. More...
 
 Decoder8Bit (Print &out_stream, bool active=true)
 Construct a new RAWDecoder object. More...
 
AudioBaseInfo audioInfo () override
 
void begin () override
 
void begin (AudioBaseInfo info)
 
void end () override
 
virtual operator bool () override
 
void setNotifyAudioChange (AudioBaseInfoDependent &bi) override
 
void setOutputStream (Print &out_stream) override
 Defines the output Stream. More...
 
virtual size_t write (const void *in_ptr, size_t in_size) override
 
- 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

bool active
 
AudioBaseInfoDependentbid =nullptr
 
Vector< int16_t > buffer
 
AudioBaseInfo cfg
 
Printp_print =nullptr
 

Detailed Description

Decoder8Bit - Converts an 8 Bit Stream into 16Bits.

Author
Phil Schatzmann

Constructor & Destructor Documentation

◆ Decoder8Bit() [1/2]

audio_tools::Decoder8Bit::Decoder8Bit ( Print out_stream,
bool  active = true 
)
inline

Construct a new RAWDecoder object.

Parameters
out_streamOutput Stream to which we write the decoded result

◆ Decoder8Bit() [2/2]

audio_tools::Decoder8Bit::Decoder8Bit ( Print out_stream,
AudioBaseInfoDependent bi 
)
inline

Construct a new RAWDecoder object.

Parameters
out_streamOutput Stream to which we write the decoded result
biObject that will be notified about the Audio Formt (Changes)

Member Function Documentation

◆ audioInfo()

AudioBaseInfo audio_tools::Decoder8Bit::audioInfo ( )
inlineoverridevirtual

◆ begin()

void audio_tools::Decoder8Bit::begin ( )
inlineoverridevirtual

◆ end()

void audio_tools::Decoder8Bit::end ( )
inlineoverridevirtual

◆ operator bool()

virtual audio_tools::Decoder8Bit::operator bool ( )
inlineoverridevirtual

◆ setNotifyAudioChange()

void audio_tools::Decoder8Bit::setNotifyAudioChange ( AudioBaseInfoDependent bi)
inlineoverridevirtual

◆ setOutputStream()

void audio_tools::Decoder8Bit::setOutputStream ( Print out_stream)
inlineoverridevirtual

Defines the output Stream.

Implements audio_tools::AudioDecoder.

◆ write()

virtual size_t audio_tools::Decoder8Bit::write ( const void *  in_ptr,
size_t  in_size 
)
inlineoverridevirtual

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