We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 31f68e4 + c97ec7e commit 5110528Copy full SHA for 5110528
libraries/PDM/src/rp2040/PDM.cpp
@@ -24,7 +24,7 @@ uint8_t rawBuffer1[RAW_BUFFER_SIZE];
24
uint8_t* rawBuffer[2] = {rawBuffer0, rawBuffer1};
25
volatile int rawBufferIndex = 0;
26
27
-int decimation = 64;
+int decimation = 128;
28
29
// final buffer is the one to be filled with PCM data
30
int16_t* volatile finalBuffer;
@@ -178,7 +178,7 @@ void PDMClass::IrqHandler(bool halftranfer)
178
}
179
180
// fill final buffer with PCM samples
181
- Open_PDM_Filter_64(rawBuffer[rawBufferIndex], finalBuffer, 1, &filter);
+ Open_PDM_Filter_128(rawBuffer[rawBufferIndex], finalBuffer, 1, &filter);
182
183
if (cutSamples) {
184
memset(finalBuffer, 0, cutSamples);
0 commit comments