|
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 <BaseStream.h>
Protected Member Functions | |
| 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 =DEFAULT_BUFFER_SIZE |
| 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 = MAX_SINGLE_CHARS |
MemoryStream which is written and read using the internal RAM. For each write the data is allocated on the heap.
|
default |
|
inline |
|
inline |
Reimplemented from BaseStream.
Reimplemented from BaseStream.
Intializes the processing.
Reimplemented from BaseStream.
|
inline |
Reimplemented from BaseStream.
Reimplemented from Print.
Reimplemented in PureDataStream, URLStreamBufferedT< T >, URLStreamBufferedT< ICYStream >, AudioStreamWrapper, ResampleStream, URLStream, BufferedTaskStream, I2SStream, MemoryStream, RingBufferStream, GeneratedSoundStream< T >, GeneratedSoundStream< int16_t >, and BufferedStream.
|
inline |
Returns the current read position.
Post processing after the recording. We add a smooth transition at the beginning and at the end.
| T |
| factor |
Implements BaseStream.
|
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.
Enable or disable consuming reads (remove records as they are read)
Automatically rewinds to the beginning when reaching the end.
|
inline |
Implements BaseStream.
Reimplemented in MemoryStream, AudioStreamWrapper, BufferedTaskStream, RingBufferStream, BufferedStream, and URLStream.
|
protectedinherited |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protectedinherited |