resample-method=src-sinc-best-quality takes about 90% CPU on my i5, aplay via default (pulse plugin) complains about xruns, pulseaudio gets killed eventually (I do not know what kills it, CPU ulimit is unlimited, probably some laptop service watching CPU hogs).
Simply starting pulseaudio with LD_PRELOAD
drops pulseaudio CPU load down to 6-9% while resampling running (checked in the card’s hw_params).
That was simple 🙂
Integrating with client-spawn pulseaudio
Tested on Mint15:
1. Create executable script /usr/local/bin/pulseaudio.sh. Make sure to use correct path to your libsoxr-lsr library:
exec /usr/bin/pulseaudio $@
Do not forget to set it executable:
chmod a+x /usr/local/bin/pulseaudio.sh
2. Set path to the script as your pulseaudio daemon binary in /etc/pulse/client.conf
daemon-binary = /usr/local/bin/pulseaudio.sh
That’s it 🙂