We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e50ec8a commit cf2bd24Copy full SHA for cf2bd24
libraries/PDM/src/stm32/PDM.cpp
@@ -80,7 +80,7 @@ int PDMClass::begin(int channels, int sampleRate) {
80
g_pcmbuf = (uint16_t*)_doubleBuffer.data();
81
_doubleBuffer.swap(0);
82
83
- if(py_audio_init(channels, sampleRate, gain_db, 0.9883f)) {
+ if(py_audio_init(channels, sampleRate, _gain, 0.9883f)) {
84
py_audio_start_streaming();
85
_init = 1;
86
return 1;
0 commit comments