10-11-2020, 01:01 AM
(10-10-2020, 10:19 PM)Tim Curtis Wrote: It's an interesting approach. I've thought about doing something like that but I'm not sure if it can be made compatible with some of the new resampling features we will be introducing in our upcoming release.
Our upcoming 7 release includes a modified MPD that performs what we call "Selective resampling". You set a sample rate target and then choose how you want the source sample rate handled. MPD automatically changes the sample rate on-the-fly.
- Upsample if source < target rate
- Upsample only 44.1K source rate
- Upsample only 44.1K and 48K source rates
- Resample (adhere to base freq)
- Upsample if source < target rate (adhere to base freq)
In this case we would not know the actual sample rate ahead of time in order to modify the PCM.conf.
My honest opinion is that upsampling is a waste of CPU cycles unless your sound card doesn't support the sample rate like some crappy old cards that only do 48000 so you have to upsample 44100 for example. Upsampling for no reason, in and of itself never increases sound quality, at best it doesn't hurt it, at worse it degrades it. The only reason it's a thing is because "audiofools" ignorantly believe that more MUST be better. It's about as effective as spending 10 grand on speaker wire.
But you got to give the people what they want or they complain so I get why you're doing it.
- Upsample if source < target rate
Just resample everything except mpd to target rate.
- Upsample only 44.1K source rate
Again upsample everything to some target rate.
By "base freq" I assume you mean some integer multiple of the so like 2 x oversampling or 4 x oversampling.