Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lampda::platform::microphone::PdmData Struct Reference

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_SIZEdata
 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.
 

Detailed Description

Store the audio data obtained from the microphone.


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