Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ReformatBaseStream Class Reference

Base class for chained converting streams. More...

#include <ResampleStream.h>

Inheritance diagram for ReformatBaseStream:
AudioStream Stream AudioInfoSupport AudioInfoSource Print ChannelFormatConverterStream ChannelFormatConverterStreamT< T > FormatConverterStream NumberFormatConverterStream NumberFormatConverterStreamT< TFrom, TTo > ResampleStream

Public Member Functions

virtual AudioInfo audioInfo () override
int available () override
int availableForWrite () override
virtual bool begin ()
virtual void end ()
virtual void flush () override
virtual PrintgetPrint ()
virtual StreamgetStream ()
 operator bool ()
size_t readBytes (uint8_t *data, size_t size) override
virtual size_t readSilence (uint8_t *buffer, size_t length)
 Source to generate silence: just sets the buffer to 0.
virtual void setAudioInfo (AudioInfo info) override
virtual void setNotifyAudioChange (AudioInfoSupport &bi) override
virtual void setStream (Print &print)
virtual void setStream (Stream &stream)
void setupReader ()
virtual bool validate (AudioInfo &info)
virtual size_t write (const uint8_t *buffer, size_t size) override
virtual size_t write (uint8_t ch) override
virtual void writeSilence (size_t len)
 Writes len bytes of silence (=0).

Protected Member Functions

virtual int not_supported (int out, const char *msg="")
void refillReadBuffer ()

Protected Attributes

float factor
AudioInfo info
AudioInfoSupportp_notify =nullptr
Printp_print = nullptr
Streamp_stream = nullptr
TransformationReader< ReformatBaseStreamreader
RingBuffer< uint8_t > tmp_in {0}
RingBuffer< uint8_t > tmp_out {0}

Detailed Description

Base class for chained converting streams.

Phil Schatzmann

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