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 6d2350e + 84d787d commit 8530747Copy full SHA for 8530747
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;
@@ -164,7 +164,7 @@ void PDMsetBufferSize(int size) {
164
}
165
166
size_t PDMgetBufferSize() {
167
- return _instance.getBufferSize();
+ return _instance->getBufferSize();
168
169
170
0 commit comments