Generates a test signal which is easy to check because the values are incremented or decremented by 1.
More...
#include <SoundGenerator.h>
|
| TestGenerator (T max=1000, T inc=1) |
|
virtual AudioInfo | audioInfo () |
| Provides the AudioInfo.
|
|
virtual bool | begin () |
|
virtual bool | begin (AudioInfo info) |
|
virtual AudioInfo | defaultConfig () |
| Provides the default configuration.
|
|
virtual void | end () |
| ends the processing
|
|
virtual bool | isActive () |
|
virtual size_t | readBytes (uint8_t *buffer, size_t lengthBytes) |
| Provides the data as byte array with the requested number of channels.
|
|
T | readSample () override |
| Provides a single sample.
|
|
virtual void | setAudioInfo (AudioInfo info) |
| Defines/updates the AudioInfo.
|
|
virtual void | setFrequency (float frequency) |
| Abstract method: not implemented! Just provides an error message...
|
|
|
size_t | readBytesFrames (uint8_t *buffer, size_t lengthBytes, int frames, int channels) |
|
size_t | readBytesFromBuffer (uint8_t *buffer, size_t lengthBytes, int frame_size, int channels) |
|
|
bool | active = false |
|
bool | activeWarningIssued = false |
|
T | inc = 1 |
|
AudioInfo | info |
|
T | max |
|
RingBuffer< uint8_t > | ring_buffer {0} |
|
T | value = 0 |
|
template<class T>
class audio_tools::TestGenerator< T >
Generates a test signal which is easy to check because the values are incremented or decremented by 1.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
- Template Parameters
-
◆ isActive()
virtual bool isActive |
( |
| ) |
|
|
inlinevirtualinherited |
Checks if the begin method has been called - after end() isActive returns false
The documentation for this class was generated from the following file: