Great! So now the final step is that for every sample rate (44.1, 48, 88.2...), I have a set of DSP presets (for 0dB, -5dB, -10dB...), based on the relevant convolver EQ files corresponding to the equal loudness curves.
So e.g. if I have 6 frequencies and 9 volume steps, I will need 54 convolver EQ files. It's a lot, but I can do it.
So if I play a 48 KHz song @ -5 dB, foobar would switch automatically to the corresponding DSP preset (48 KHz and -5 dB), without resampling. The signal would then be output in WASAPI to USB, and the external DAC would take care of it.
I know, it may seem crazy, but it should work.
Now I just have to figure how to use Dynamic DSP and the JScript Panel script together. I still need them both, right ?
The JScript Panel script requires presets to be called "dsp 0", "dsp -5" and so on.
But I need a "dsp 0" for 44.1, plus another "dsp 0" for 48, and so on.
How can I achieve this ?
I know that with Dynamic DSP I can do something like this, but it's not enough :
$if2([%trackdsp%],$ifgreater(%sameplerate%,191999,'192 preset',$ifgreater(%sameplerate%,176399,'176 preset',$ifgreater(%sameplerate%,95999,'96 preset',$ifgreater(%sameplerate%,88199,'88 preset',$ifgreater(%sameplerate%,47999,'48 preset',$ifgreater(%sameplerate%,44099,'44 preset','Low preset')))))))