SoundBuffer where the data is standardized, amplified and clipped.
More...
#include <Buffers.h>
|
| SoundBuffer (int buffer_count, int buffer_length, double amplifier=1.0, T clip=0) |
| Construct a new Sound Buffer object. More...
|
|
T * | getFull () |
| provides the buffer which contains the sound samples - the recorded values are standardized
|
|
| Buffers (int buffer_count, int buffer_length, bool blocking=true, bool synchronized=true) |
| Construct a new Buffers object. More...
|
|
| ~Buffers () |
| Destructor.
|
|
virtual void | addEmpty (T *buffer) |
| Makes the buffer available as empty.
|
|
virtual void | addFull (T *buffer) |
| Adds the buffer to the list of available data.
|
|
virtual int | bufferLength () |
| Provides the length of each buffer.
|
|
virtual T * | getEmpty () |
| Retrieves an empty buffer.
|
|
|
double | avg (T *buffer, int len) |
| calculate the average over all samples
|
|
void | standardize (T *buffer, double avg_value, int len) |
| make sure that the center is at 0 and that the peaks are clipped
|
|
|
double | amplifier |
|
T | clip |
|
float | amplifier |
|
int | buffer_count |
|
int | buffer_length |
|
T | clip |
|
Queue< T * > * | emptyBuffers |
|
Queue< T * > * | filledBuffers |
|
template<class T>
class pico_arduino::SoundBuffer< T >
SoundBuffer where the data is standardized, amplified and clipped.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
- Template Parameters
-
◆ SoundBuffer()
Construct a new Sound Buffer object.
- Parameters
-
buffer_count | number of buffers |
buffer_length | number of entries in one buffer |
amplifier | factor by which each sample is multiplied |
clip | amplified values above this value are clipped (clipping is deactive if value is <=0) |
The documentation for this class was generated from the following file: