I have a Teensy 3.6 with the Audio Shield and RAM (23LC1024T-I/SN 全新芯片SOIC8IC SRAM 1M SPI 20MHZ 8SOIC):
When I delay the microphone input, I hear cracks if the delay is greater than about 10. Is this is a hardware issue, or am I missing something?
The sketch:
When I delay the microphone input, I hear cracks if the delay is greater than about 10. Is this is a hardware issue, or am I missing something?
The sketch:
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioInputI2S i2s1; //xy=194.00004196166992,333.00004959106445
AudioEffectDelay delay1; //xy=454,324
AudioOutputI2S i2s2; //xy=639.000020980835,284.00000953674316
AudioConnection patchCord1(i2s1, 0, delay1, 0);
AudioConnection patchCord2(delay1, 0, i2s2, 0);
// GUItool: end automatically generated code
AudioControlSGTL5000 audioShield;
const int myInput = AUDIO_INPUT_MIC;
void setup() {
AudioMemory(10);
audioShield.enable();
audioShield.volume(0.7);
delay(1000);
audioShield.inputSelect(myInput);
audioShield.micGain(24);
}
void loop() {
delay1.delay(0, 100); // with delay up to ~10, the sound is clean
delay(500);
}