Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
audio_tools::VorbisDecoder Class Reference

Vorbis Streaming Decoder using More...

#include <CodecVorbis.h>

Inheritance diagram for audio_tools::VorbisDecoder:

Public Member Functions

 ~VorbisDecoder ()
 Destroy the VorbisDecoder object.
AudioBaseInfo audioInfo () override
 Provides the last available MP3FrameInfo.
void begin () override
 Starts the processing.
virtual bool copy () override
 Process a single read operation - to be called in the loop.
void end () override
 Releases the reserved memory.
virtual operator bool () override
 checks if the class is active
void setInputStream (Stream &inStream) override
 Defines the output Stream.
void setNotifyAudioChange (AudioBaseInfoDependent &bi) override
 Register Output Stream to be notified about changes.
void setOutputStream (Print &outStream) override
 Defines the output Stream.
- Public Member Functions inherited from audio_tools::StreamingDecoder
virtual void setOutputStream (AudioPrint &out_stream)
 Defines the output streams and register to be notified.
virtual void setOutputStream (AudioStream &out_stream)
 Defines the output streams and register to be notified.

Protected Member Functions

AudioBaseInfo currentInfo ()
virtual size_t readBytes (uint8_t *ptr, size_t size) override
const char * readError (long error)

Static Protected Member Functions

static int close_func (void *datasource)
static size_t read_func (void *ptr, size_t size, size_t nmemb, void *datasource)
static int seek_func (void *datasource, ogg_int64_t offset, int whence)
static long tell_func (void *datasource)

Protected Attributes

bool active
int bitstream
ov_callbacks callbacks
AudioBaseInfo cfg
OggVorbis_File file
bool is_first = true
Streamp_in = nullptr
AudioBaseInfoDependentp_notify = nullptr
Printp_out = nullptr
Vector< uint8_t > pcm

Detailed Description

Vorbis Streaming Decoder using

Phil Schatzmann

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