Thank you for answering MarkT!
I'm sorry for omitting the code. Here it goes, actually very simple but I also suspect a software problem.
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioInputUSB usb1; //xy=120,168
AudioMixer4 mixer2; //xy=342,245
AudioMixer4 mixer1; //xy=350,136
AudioOutputI2S i2s1; //xy=546,191
AudioConnection patchCord1(usb1, 0, mixer1, 1);
AudioConnection patchCord2(usb1, 1, mixer2, 2);
AudioConnection patchCord3(mixer2, 0, i2s1, 1);
AudioConnection patchCord4(mixer1, 0, i2s1, 0);
// GUItool: end automatically generated code
void setup() {
AudioMemory(12);
}
void loop() {
Here a picture with samples in the timeline. I can roughly count from sample 988815 to 988953 more or less (138 in total). Another glitch goes from sample 3036146 to 3036284, also 138 in total. The number is consistent but difficult to count exactly since a peak forms at the beginning of each glitch.