Recently I noticed I am not getting any signal through my inputs. I have got a Rev2 Pepper.
I have ofstream a .txt from both channels through audioRead, printing incredibly small numbers in a random manner and not reactive to audio. I have also tried the Pepper patch that passes inputs to outputs without success. Lastly, I tried the following code based on the oscilloscope example:
#include <Bela.h>
#include <libraries/Scope/Scope.h>
#include <cmath>
// instantiate the scope
Scope scope;
bool setup(BelaContext *context, void *userData)
{
// tell the scope how many channels and the sample rate
scope.setup(3, context->audioSampleRate);
return true;
}
void render(BelaContext *context, void *userData)
{
for (unsigned int n = 0; n < context->audioFrames; ++n)
{
float left = audioRead(context, n, 0);
float right = audioRead(context, n, 1);
float in_1 = analogRead(context, n, 0);
// log the three oscillators to the scope
scope.log(left, right, in_1);
}
}
void cleanup(BelaContext *context, void *userData)
{
}
On this code, I get results on analog channel one but nothing on the audio channels.
Also, altering the dBs of each channel on the IDE does not seem to have much of an effect.
Am I missing anything? Are there any common hardware mistakes when building the module or any channel configuration I'm missing?
Any help is appreciated : )
Thank you