Only the USB input & output depend on USB audio type. Everything else in the audio library works fine. Well, almost everything. A few of the other input and output hardware options are not yet working on Teensy 4.0.
Some, like DAC output, will never be supported on Teensy 4.0 because the board lacks that specific hardware.
I2S input & output work great. All the non I/O features, which are purely a matter of math on digital audio samples, are all working.
Maybe you meant File > Examples > Audio > HardwareTesting > ToneSweep? It compiles without error. I ran it just now on a Teensy 4.0 and the "Rev D" audio shield. Works fine.
If you meant some other program, please be more specific. Maybe give a link to the code, or provide a copy of it here.