Audio pops/cracks using USB audio connected to iPad

sunny

New member
Using Teensy 4.0 with Audio Shield as an audio interface Line in and Line out through USB audio to an iPad mini with USB C.

Apps like AUM, Koala Sampler, and Voice Memos have issues with pops in the incoming audio. Issue starts after about 2 minutes of USB being connected. I suspect these issues are related to sample rate and MacOS issues I've seen before on other threads. I am not sure if those fixes that were implemented apply to iPadOS or IOS.

Audio file provided.

I'd appreciate any help I can get, thank you so much!

Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>


// GUItool: begin automatically generated code
AudioInputUSB            usb2;           //xy=376,207
AudioInputI2S            i2s1;           //xy=381,312
AudioOutputI2S           i2s2;           //xy=543,207
AudioOutputUSB           usb1;           //xy=545,312
AudioConnection          patchCord1(usb2, 0, i2s2, 0);
AudioConnection          patchCord2(usb2, 1, i2s2, 1);
AudioConnection          patchCord3(i2s1, 0, usb1, 0);
AudioConnection          patchCord4(i2s1, 1, usb1, 1);
AudioControlSGTL5000     sgtl5000_1;     //xy=444,444
// GUItool: end automatically generated code

void setup() {
  // put your setup code here, to run once:
  AudioMemory(24);
  sgtl5000_1.enable();
  sgtl5000_1.volume(0.8);
  sgtl5000_1.inputSelect(AUDIO_INPUT_LINEIN);

}

void loop() {

}
 
Update: Looked through the forums more and found that Alex6679 and others have done some amazing work on this and it should get merged in the future. This seems to have solved my problems. Github Link

Thank you all.
 
Back
Top