Junglist The resampling is already set to a better algorithm than the pulseaudio default (which apparently distros like Ubuntu still ship with). But if you like to tinker even more, then create a file /etc/pulse/daemon.conf and add the lines you like:
Best resample-methods:
resample-method = soxr-vhq
or resample-method = speex-float-10
Avoid resampling altogether when possible
avoid-resampling = yes
24-bit audio ..
default-sample-format = float32le
.. or 32-bit audio
default-sample-format = s24le
Increase alternate sample rate to 96khz (if eg. you've got an audio interface that supports it). The system should choose the best suitable rate, so afaik you can leave default-sample-rate intact.
alternate-sample-rate = 96000
If you want to return to default setting, just wipe the line from the file, or remove the file altogether and it falls back to /usr/share/pulseaudio/daemon.conf