|
arduino-audio-tools
|
MemoryStream which is written and read using the internal RAM. For each write the data is allocated on the heap. More...
#include <CodecOpusOgg.h>
Public Member Functions | |
| DynamicMemoryStream ()=default | |
| DynamicMemoryStream ()=default | |
| DynamicMemoryStream (bool isLoop, int defaultBufferSize=125, int maxRecords=0) | |
| DynamicMemoryStream (bool isLoop, int defaultBufferSize=125, int maxRecords=0) | |
| void | assign (DynamicMemoryStream &ref) |
| void | assign (DynamicMemoryStream &ref) |
| virtual int | available () override |
| virtual int | available () override |
| virtual int | availableForWrite () override |
| virtual int | availableForWrite () override |
| virtual bool | begin () override |
| Intializes the processing. | |
| virtual bool | begin () override |
| Intializes the processing. | |
| void | clear () |
| void | clear () |
| virtual void | end () override |
| virtual void | end () override |
| virtual void | flush () override |
| virtual void | flush () override |
| size_t | getPos () |
| Returns the current read position. | |
| size_t | getPos () |
| Returns the current read position. | |
| List< DataNode * > & | list () |
| List< DataNode * > & | list () |
| operator bool () | |
| operator bool () | |
| template<typename T> | |
| void | postProcessSmoothTransition (int channels, float factor=0.01, int remove=0) |
| Post processing after the recording. We add a smooth transition at the beginning and at the end. | |
| template<typename T> | |
| void | postProcessSmoothTransition (int channels, float factor=0.01, int remove=0) |
| Post processing after the recording. We add a smooth transition at the beginning and at the end. | |
| virtual size_t | readBytes (uint8_t *data, size_t len) override |
| virtual size_t | readBytes (uint8_t *data, size_t len) override |
| void | rewind () |
| Sets the read position to the beginning. | |
| void | rewind () |
| Sets the read position to the beginning. | |
| void | setConsumeOnRead (bool consume) |
| Enable or disable consuming reads (remove records as they are read). | |
| void | setConsumeOnRead (bool consume) |
| Enable or disable consuming reads (remove records as they are read). | |
| virtual void | setLoop (bool loop) |
| Automatically rewinds to the beginning when reaching the end. | |
| virtual void | setLoop (bool loop) |
| Automatically rewinds to the beginning when reaching the end. | |
| void | setMaxRecords (int max_records) |
| void | setMaxRecords (int max_records) |
| void | setWriteBufferSize (int size) |
| void | setWriteBufferSize (int size) |
| size_t | size () |
| size_t | size () |
| virtual size_t | write (uint8_t ch) override |
| virtual size_t | write (const uint8_t *data, size_t len) override |
| virtual size_t | write (const uint8_t *data, size_t len) override |
Protected Member Functions | |
| void | refillReadBuffer () |
| Refill small read buffer (e.g. 8 bytes) to avoid single byte reads when calling read(). | |
| void | refillReadBuffer () |
| Refill small read buffer (e.g. 8 bytes) to avoid single byte reads when calling read(). | |
Protected Attributes | |
| int | _timeout = 10 |
| bool | alloc_failed = false |
| List< DataNode * > | audio_list |
| bool | consume_on_read = false |
| int | default_buffer_size = 125 |
| bool | is_loop = false |
| List< DataNode * >::Iterator | it = audio_list.end() |
| int | max_records = 0 |
| size_t | read_pos = 0 |
| RingBuffer< uint8_t > | temp_audio {0} |
| RingBuffer< uint8_t > | tmp_in {0} |
| RingBuffer< uint8_t > | tmp_out {0} |
| size_t | total_available = 0 |
| int | write_buffer_size = 8 |
MemoryStream which is written and read using the internal RAM. For each write the data is allocated on the heap.
|
default |
|
inline |
|
default |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Reimplemented from BaseStream.
|
inlineoverridevirtual |
Reimplemented from BaseStream.
|
inlineoverridevirtual |
Reimplemented from BaseStream.
|
inlineoverridevirtual |
Reimplemented from BaseStream.
|
inlineoverridevirtual |
Intializes the processing.
Reimplemented from BaseStream.
|
inlineoverridevirtual |
Intializes the processing.
Reimplemented from BaseStream.
|
inline |
|
inline |
|
inlineoverridevirtual |
Reimplemented from BaseStream.
|
inlineoverridevirtual |
Reimplemented from BaseStream.
|
inlineoverridevirtualinherited |
Reimplemented from Print.
Reimplemented in AudioStreamWrapper, AudioStreamWrapper, BufferedStream, BufferedStream, EncodedAudioStream, FilteredStream< T, TF >, FilteredStream< T, TF >, FilteredStream< int16_t, int16_t >, GeneratedSoundStream< T >, GeneratedSoundStream< T >, GeneratedSoundStream< int16_t >, MemoryStream, MemoryStream, QueueStream< T >, QueueStream< T >, QueueStream< uint8_t >, ReformatBaseStream, RingBufferStream, RingBufferStream, TimedStream, AudioEffectStream, AudioEffectStreamT< T >, AudioStreamWrapper, AutomaticGainControlStream, BufferedStream, BufferedTaskStream, EncodedAudioStream, Equalizer3BandsPerChannelT< T >, Equalizer3BandsPerChannelT< float >, Equalizer3BandsT< T >, Equalizer3BandsT< float >, EqualizerNBands< SampleT, AccT, NUM_TAPS, NUM_BANDS >, FadeStream, FilteredStream< T, TF >, GeneratedSoundStream< T >, I2SStream, MeasuringStream, MemoryStream, Pipeline::ModifyingStreamAdapter, PureDataStream, QualityAnalysisStream, QueueStream< T >, ReformatBaseStream, ResampleStream, RingBufferStream, SupportedRatesStream, TimedStream, URLStream, URLStreamBufferedT< T >, URLStreamBufferedT< ICYStream >, URLStreamBufferedT< ICYStreamESP32 >, URLStreamBufferedT< URLStream >, URLStreamBufferedT< URLStreamESP32 >, and VolumeStream.
|
inlineoverridevirtualinherited |
Reimplemented from Print.
Reimplemented in AudioStreamWrapper, AudioStreamWrapper, BufferedStream, BufferedStream, EncodedAudioStream, FilteredStream< T, TF >, FilteredStream< T, TF >, FilteredStream< int16_t, int16_t >, GeneratedSoundStream< T >, GeneratedSoundStream< T >, GeneratedSoundStream< int16_t >, MemoryStream, MemoryStream, QueueStream< T >, QueueStream< T >, QueueStream< uint8_t >, ReformatBaseStream, RingBufferStream, RingBufferStream, TimedStream, AudioEffectStream, AudioEffectStreamT< T >, AudioStreamWrapper, AutomaticGainControlStream, BufferedStream, BufferedTaskStream, EncodedAudioStream, Equalizer3BandsPerChannelT< T >, Equalizer3BandsPerChannelT< float >, Equalizer3BandsT< T >, Equalizer3BandsT< float >, EqualizerNBands< SampleT, AccT, NUM_TAPS, NUM_BANDS >, FadeStream, FilteredStream< T, TF >, GeneratedSoundStream< T >, I2SStream, MeasuringStream, MemoryStream, Pipeline::ModifyingStreamAdapter, PureDataStream, QualityAnalysisStream, QueueStream< T >, ReformatBaseStream, ResampleStream, RingBufferStream, SupportedRatesStream, TimedStream, URLStream, URLStreamBufferedT< T >, URLStreamBufferedT< ICYStream >, URLStreamBufferedT< ICYStreamESP32 >, URLStreamBufferedT< URLStream >, URLStreamBufferedT< URLStreamESP32 >, and VolumeStream.
|
inline |
Returns the current read position.
|
inline |
Returns the current read position.
|
inlineinherited |
|
inlineinherited |
|
inline |
Post processing after the recording. We add a smooth transition at the beginning and at the end.
| T |
| factor |
|
inline |
Post processing after the recording. We add a smooth transition at the beginning and at the end.
| T |
| factor |
|
inlineoverridevirtual |
Implements BaseStream.
|
inlineoverridevirtual |
Implements BaseStream.
|
inlineprotectedinherited |
Refill small read buffer (e.g. 8 bytes) to avoid single byte reads when calling read().
|
inlineprotectedinherited |
Refill small read buffer (e.g. 8 bytes) to avoid single byte reads when calling read().
|
inline |
Sets the read position to the beginning.
|
inline |
Sets the read position to the beginning.
|
inline |
Enable or disable consuming reads (remove records as they are read).
|
inline |
Enable or disable consuming reads (remove records as they are read).
|
inlinevirtual |
Automatically rewinds to the beginning when reaching the end.
|
inlinevirtual |
Automatically rewinds to the beginning when reaching the end.
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inline |
|
inline |
|
inlineoverridevirtualinherited |
|
inlineoverridevirtual |
Implements BaseStream.
|
inlineoverridevirtual |
Implements BaseStream.
|
protectedinherited |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protectedinherited |