We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arduino
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 2f95bc3 commit c97ec7eCopy full SHA for c97ec7e
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