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

Channel converter which does not use a template. More...

#include <AudioStreamsConverter.h>

Inheritance diagram for ChannelFormatConverterStream:
ReformatBaseStream AudioStream Stream AudioInfoSupport AudioInfoSource Print

Public Member Functions

 ChannelFormatConverterStream (ChannelFormatConverterStream const &)=delete
 ChannelFormatConverterStream (Print &print)
 ChannelFormatConverterStream (Stream &stream)
virtual AudioInfo audioInfo () override
virtual int available () override
virtual int availableForWrite () override
virtual bool begin ()
bool begin (AudioInfo cfg, int toChannels)
virtual void end ()
virtual void flush () override
virtual PrintgetPrint ()
virtual StreamgetStream ()
 operator bool ()
ChannelFormatConverterStreamoperator= (ChannelFormatConverterStream const &)=delete
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.
void setAudioInfo (AudioInfo cfg) 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 *data, 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

template<typename T >
ChannelFormatConverterStreamT< T > * getConverter ()
virtual int not_supported (int out, const char *msg="")
void refillReadBuffer ()
bool setupConverter (int fromChannels, int toChannels)

Protected Attributes

int _timeout = 10
int bits_per_sample = 0
void * converter
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

Channel converter which does not use a template.

Phil Schatzmann

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