sink, source: Add a mode to avoid resampling if possible
This adds an "avoid-resampling" option to daemon.conf that makes the daemon try to use the stream sample rate if possible (the device needs to support it, which currently only ALSA does), and there should not be any other stream connected). This should enable some of the "audiophile" use-cases where users wish to play high sample rate audio files without resampling. We still will do conversion if sample formats don't match, though. This means that if you want to play 96 kHz/24 bit audio without any modification the default format will need to be set to be 24-bit as well. This will force all streams to be upconverted, which, other than the wasted resources, should be relatively harmless.
Showing with 30 additions and 4 deletions