Right, dumb me; thanks for the hint! I am a completely novice to pretty much the entire system including C++.
At the moment I am getting a DC-like signal on the scope, and wondering if I have anything wrong from the wiring or code.
for (unsigned int n = 0; n < context->audioFrames; n++) {
scope.log(analogRead(context, n / 2, 0));
for (unsigned int channel = 0; channel < context->audioOutChannels; channel++) {
audioWrite(context, n, channel, analogRead(context, n / 2, channel));
}
}
I am expecting to speak to the mic and hear the playback from my speaker, but there is only noise-like sound and the scope displays a DC-like signal even though I am speaking to the mic. I suspect that I misinterpret analogRead
and should use other functions instead.
As for the hardware, below are two angles:
https://ibb.co/Z1MRZWY
https://ibb.co/JcLPz1d
Could you shed lights on the potential or obvious mistakes?