|
arduino-audio-tools
|
Channel converter which does not use a template. More...
#include <AudioStreamsConverter.h>
Protected Member Functions | |
| void | cleanupConverter () |
| void | copy (ChannelFormatConverterStream &from) |
| template<typename T > | |
| ChannelFormatConverterStreamT< T > * | getConverter () |
| virtual int | not_supported (int out, const char *msg="") |
| void | notifyAudioChange (AudioInfo info) |
| void | refillReadBuffer () |
| Refill small read buffer (e.g. 8 bytes) to avoid single byte reads when calling read() | |
| bool | setupConverter (int fromChannels, int toChannels) |
| void | setupReader () |
Protected Attributes | |
| int | _timeout = 10 |
| int | bits_per_sample = 0 |
| void * | converter = nullptr |
| int | from_channels = 2 |
| AudioInfo | info |
| bool | is_active = false |
| bool | is_notify_active = true |
| Vector< AudioInfoSupport * > | notify_vector |
| Print * | p_print = nullptr |
| Stream * | p_stream = nullptr |
| TransformationReader< ReformatBaseStream > | reader |
| RingBuffer< uint8_t > | tmp_in {0} |
| RingBuffer< uint8_t > | tmp_out {0} |
| int | to_channels = 2 |
| int | write_buffer_size = MAX_SINGLE_CHARS |
Channel converter which does not use a template.
|
default |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inlinevirtualinherited |
Adds target to be notified about audio changes.
Reimplemented in CodecNOP, EncodedAudioOutput, EncodedAudioStream, AACDecoderFDK, DecoderBasic, CodecChain, MP3DecoderHelix, MP3DecoderMAD, OggContainerDecoder, RTSPClient< TcpClient, UdpSocket >, Pipeline, and Pipeline::ModifyingStreamAdapter.
provides the actual input AudioInfo
Implements AudioInfoSupport.
Reimplemented in JupyterAudioT< T >, MozziStream, TimerCallbackAudioStream, EncodedAudioStream, PureDataStream, AdapterAudioOutputToAudioStream, GeneratedSoundStream< T >, GeneratedSoundStream< int16_t >, and InputMerge< T >.
|
inlineoverridevirtual |
Returns the AudioInfo with the to_channels.
Reimplemented from AudioInfoSupport.
Reimplemented from BaseStream.
Reimplemented from BaseStream.
|
inlineoverridevirtual |
Reimplemented from BaseStream.
|
inlineprotected |
Deletes all change notify subscriptions.
Reimplemented in RTSPClient< TcpClient, UdpSocket >.
|
inlineprotected |
|
inlineoverridevirtual |
Reimplemented from BaseStream.
Called by TransformationReader when EOF is detected on the source stream. Override in subclasses to flush any internally buffered encoder/decoder data into the current output (which at that point is the result_queue). Do NOT call the full end()/begin() cycle here – that would destroy the reader's own buffers and reset the is_eof flag.
Reimplemented from BaseStream.
Reimplemented in ResampleStream, and EncodedAudioStream.
|
inlineoverridevirtual |
Implements ReformatBaseStream.
|
inlineprotected |
|
inline |
Reimplemented from AudioStream.
Source to generate silence: just sets the buffer to 0.
|
inlineprotectedinherited |
Refill small read buffer (e.g. 8 bytes) to avoid single byte reads when calling read()
|
inlinevirtualinherited |
Removes a target in order not to be notified about audio changes.
Reimplemented in RTSPClient< TcpClient, UdpSocket >.
Define the size of the interal read result queue: same as transformationReader().resizeResultQueue(size)
Defines the input AudioInfo.
Reimplemented from AudioStream.
Defines the read buffer size for individual reads: same as transformationReader().setMaxReadSize(size)
Deactivate/Reactivate automatic AudioInfo updates: (default is active)
|
inlinevirtualinherited |
Reimplemented in FormatConverterStream, and EncodedAudioStream.
Defines/Changes the output target.
Implements ModifyingStream.
Reimplemented in EncodedAudioStream, and FormatConverterStream.
|
inlinevirtualinherited |
Reimplemented in FormatConverterStream, and EncodedAudioStream.
Defines/Changes the input & output.
Implements ModifyingStream.
Reimplemented in FormatConverterStream, and EncodedAudioStream.
|
inlineprotectedinherited |
|
inlinevirtualinherited |
Provides access to the TransformationReader.
Reimplemented from AudioStream.
Reimplemented in MemoryStream, AudioStreamWrapper, BufferedTaskStream, RingBufferStream, BufferedStream, and URLStream.
|
protectedinherited |
|
protected |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protectedinherited |