FastLED 3.10.8
Loading...
Searching...
No Matches

◆ getMicResponseCurve()

MicResponseCurve fl::audio::getMicResponseCurve ( MicProfile profile)
inline

Get the high-resolution response curve for a given mic profile.

Returns a curve with count=0 for MicProfile::None.

Definition at line 198 of file mic_response_data.h.

198 {
199 MicResponseCurve curve = {nullptr, nullptr, 0};
200 switch (profile) {
203 break;
206 break;
209 break;
212 break;
215 break;
216 case MicProfile::None:
217 default:
218 break;
219 }
220 return curve;
221}
@ LineIn
Line-in input (relatively flat, minor HF rolloff)
@ GenericMEMS
Generic MEMS microphone (moderate bass rolloff)
@ None
No correction (flat response assumed)
@ INMP441
InvenSense INMP441 MEMS mic (most common)
@ ICS43434
InvenSense ICS-43434 MEMS mic.
@ SPM1423
Knowles SPM1423 MEMS mic.
static const float kMicResponse_GenericMEMS[kMicResponsePoints]
static const float kMicResponse_ICS43434[kMicResponsePoints]
static const float kMicResponseFreqs[kMicResponsePoints]
static const float kMicResponse_SPM1423[kMicResponsePoints]
static constexpr int kMicResponsePoints
static const float kMicResponse_INMP441[kMicResponsePoints]
static const float kMicResponse_LineIn[kMicResponsePoints]

References fl::FL_NO_EXCEPT, GenericMEMS, ICS43434, INMP441, kMicResponse_GenericMEMS, kMicResponse_ICS43434, kMicResponse_INMP441, kMicResponse_LineIn, kMicResponse_SPM1423, kMicResponseFreqs, kMicResponsePoints, LineIn, None, and SPM1423.

Referenced by fl::audio::detector::EqualizerDetector::setMicProfile().

+ Here is the caller graph for this function: