AFAIK the only codec used both for music and BT A2DP in any significant way is AAC. Usually speakers and headphone manufacturers will advertise it if they use a non-SBC codec, it's selling point. Most modern Sony speakers and headphones use AAC at the very least, with higher tier ones using also LDAC. I know MP3 also can be used for BT, but no one that I know uses it, especially not any mainstream devices. In contrast, AAC over A2DP is supported in AOSP since Android 8.0, so probably all devices with 8.0 and above will support it. I think Apple also supports AAC on Bluetooth. Now if the devices will or won't reencode the AAC stream is up in the air, who knows.
Don't forget aptX and aptX-LL
The problem is that I use Traktor Audio MK2, but installed driver for MK1.
I've delete it and install driver for MK2 and all started work well without DSP plugins. Sorry for my fail.
Didn't help. Still have fail.
If you have a huge number of files I suggest trying to lower the numbers in the LargeFieldsConfig.txt file. You could try for example
I tried halving all the values in the LargeFieldsConfig.txt file and now foobar2000 is using over 3000 MB of memory (5 times more than usual). Does that make sense?
I'm sorry to disappoint you but foobar2000's library is not designed to handle this amount of files and will inevitably give you trouble.
Peter, what is the maximum library size foobar2000 can handle comfortably?