I can give more details about what we tried:
At our tests we set the number of channels to 2, we chose 44.1kHz as sample rate and 16bit resolution. We used the simple usb input example from my repository. There were no buffer over- or underruns and we received a signal at the Teensy. The problem is that this signal consists of zeros/silence. At the start up of the Teensy we see that the Teensy receives the expected sound signal for a fraction of a second. But then it always switches to zeros.
We switched back to the original usb input code from the T4 core and received the correct signal. The differences between the new usb input and the code from T4 core can be split into two parts: I switched from UAC1 standard to UAC2 and I changed the implementation of the AudioInputUSB class (i.e. how the usb feedback is computed, the behavior at buffer over- and underruns,... ). In order to find out which of these two changes causes the problem, I merged the two implementations. I used the implementation of the UAC1 standard from the T4 core and combined it with the new implementation of the AudioInputUSB class. With this mixed implemenation, we then received the correct signal and I therefore think that the problem is related to the UAC2 standard. Maybe my implementation does not completely comply with the UAC2 standard.
My current problem is: When we debug the Teensy code, everything just looks fine (except that the received signal consists of zeros). I would therefore now focus on the USB host and try to find out, why the Mac sends only silence to the Teensy. We had a look at the MacOs sound settings and here also everything looks fine. The Teensy is detected as a stereo, 16bit, 44.1kHz audio device. We would be very glad if some experienced Mac user can help us. Are there for example some log files similar to linux, that would tell us if there is a problem with the Teensy?
@AntiLoop : Just to make sure that we understood you correctly: You successfully use my implementation of usb input on a Mac? That means on your Mac my UAC2 implemtation doesn't cause problems? Do you also use 2 channels/ 44.1kHz/ 16bit as we did at our tests? Do you know of any sound settings that
@Weiweiweiwear could check?