arduino-audio-tools
Loading...
Searching...
No Matches
BufferedArray< T > Class Template Reference

Class which is usfull ot provide incremental data access e.g. for EdgeImpulse which request data with an offset and length starting from 0 up to the buffer length, restarting at 0 again. More...

#include <CodecOpusOgg.h>

Public Member Functions

 BufferedArray (Stream &input, int len)
 BufferedArray (Stream &input, int len)
int16_t * getValues (size_t offset, size_t length)
int16_t * getValues (size_t offset, size_t length)

Protected Attributes

int actual_end = -1
Vector< T > array
int last_end = 0
Stream * p_stream = nullptr

Detailed Description

template<typename T = uint8_t>
class audio_tools::audio_tools::BufferedArray< T >

Class which is usfull ot provide incremental data access e.g. for EdgeImpulse which request data with an offset and length starting from 0 up to the buffer length, restarting at 0 again.

Author
Phil Schatzmann

Constructor & Destructor Documentation

◆ BufferedArray() [1/2]

template<typename T = uint8_t>
BufferedArray ( Stream & input,
int len )
inline

◆ BufferedArray() [2/2]

template<typename T = uint8_t>
BufferedArray ( Stream & input,
int len )
inline

Member Function Documentation

◆ getValues() [1/2]

template<typename T = uint8_t>
int16_t * getValues ( size_t offset,
size_t length )
inline

◆ getValues() [2/2]

template<typename T = uint8_t>
int16_t * getValues ( size_t offset,
size_t length )
inline

Member Data Documentation

◆ actual_end

template<typename T = uint8_t>
int actual_end = -1
protected

◆ array

template<typename T = uint8_t>
Vector< T > array
protected

◆ last_end

template<typename T = uint8_t>
int last_end = 0
protected

◆ p_stream

template<typename T = uint8_t>
Stream * p_stream = nullptr
protected

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