Skip to content

Commit 353bec5

Browse files
committed
Reduce PDM buffer to 1KB
1 parent f9909c5 commit 353bec5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/PDM/src/stm32/audio.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
#define AUDIO_IN_IRQ_PREPRIO ((uint32_t)0x0F)
3030

31-
#define PDM_BUFFER_SIZE (16384/2)
31+
#define PDM_BUFFER_SIZE (1024)
3232

3333
void py_audio_deinit();
3434
int py_audio_init(size_t g_channels, uint32_t frequency, int gain_db, float highpass);
@@ -37,4 +37,4 @@ void py_audio_start_streaming();
3737
void py_audio_stop_streaming();
3838
bool isBoardRev2();
3939

40-
#endif
40+
#endif

0 commit comments

Comments
 (0)