MCPcopy Create free account
hub / github.com/OpenEarable/open-earable / setSampleRate

Method setSampleRate

src/audio_pdm/PDM_Mic.cpp:207–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207int PDM_Mic::setSampleRate(int sampleRate) {
208 _sampleRate = pdm_mic.checkSampleRateValid(sampleRate) ? sampleRate : sampleRate_default;
209 return _sampleRate;
210}
211
212void PDM_Mic::setGain(int8_t gain_left, int8_t gain_right) {
213 _gain_l = gain_left;

Callers

nothing calls this directly

Calls 1

checkSampleRateValidMethod · 0.80

Tested by

no test coverage detected