arduino-audio-tools
All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Modules Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
NBufferFile< File, T > Class Template Referenceabstract
Inheritance diagram for NBufferFile< File, T >:
BaseBuffer< T >

Public Member Functions

virtual T * address ()=0
 returns the address of the start of the physical read buffer
 
void clear ()
 same as reset
 
virtual int clearArray (int len)
 Removes the next len entries.
 
bool isEmpty ()
 
virtual bool isFull ()=0
 checks if the buffer is full
 
virtual float levelPercent ()
 Returns the level of the buffer in %.
 
virtual void reset ()=0
 clears the buffer
 
virtual int writeArrayOverwrite (const T data[], int len)
 Fills the buffer data and overwrites the oldest data if the buffer is full.
 

Protected Member Functions

void cleanupFile (File &file)
 
void setWritePos (int pos)
 

Protected Attributes

File empty
 
Queue< Fileempty_files
 
int file_count = 0
 
void(* file_delete_callback )(const char *filename)
 
Queue< Filefilled_files
 
const uint16_t max_file_name = 256
 
friend NBuffer< T >
 
Str next_file_name
 
int number_of_objects_per_file = 0
 
File read_file
 
File write_file
 

Member Function Documentation

◆ address()

template<typename T >
virtual T * address ( )
pure virtualinherited

◆ clearArray()

template<typename T >
virtual int clearArray ( int  len)
inlinevirtualinherited

Removes the next len entries.

Reimplemented in SingleBuffer< T >, SingleBuffer< int16_t >, and SingleBuffer< uint8_t >.

◆ isFull()

template<typename T >
virtual bool isFull ( )
pure virtualinherited

◆ reset()

template<typename T >
virtual void reset ( )
pure virtualinherited

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