|
Lamp-Da 0.1
A compact lantern project
|
Store the audio data obtained from the microphone. More...
#include <pdm_handle.h>
Public Member Functions | |
| bool | is_valid () const |
| if this is false, all the data are garbage | |
Public Attributes | |
| std::array< int16_t, SAMPLE_SIZE > | data |
| raw audio data buffer | |
| uint64_t | sampleDuration_us |
| duration of the sample in microseconds | |
| uint64_t | sampleTime_us |
| time at the start of the sample in microseconds | |
| uint16_t | sampleRead = 0 |
| number of sound sample in array. Will be <= SAMPLE_SIZE | |
Static Public Attributes | |
| static constexpr uint16_t | SAMPLE_SIZE = 512 |
| Size of the sound sample. | |
Store the audio data obtained from the microphone.