Archives
Tags
Monthly Archives: September 2013
Pulseaudio with LD_PRELOADing libsoxr-lsr
Pulseaudio with default-sample-rate=192000 and 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 LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libsoxr-lsr.so.0 pulseaudio 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: #! /bin/bash export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libsoxr-lsr.so.0 exec /usr/bin/pulseaudio $@ Do not forget … Continue reading
Posted in Linux Audio
1 Comment
Using libsoxr-lsr in Alsa Rate Plugin with LD_PRELOAD
Since my previous post the great libsoxr library incl. the libsoxr-lsr variant has become part of debian testing/ubuntu repositories. It means we can easily use it instead of libsamplerate now. Just install the package: pavel@samsung ~ $ aptitude search libsoxr p libsoxr-dev – High quality 1D sample-rate conversion lib p libsoxr-dev:i386 – High quality 1D sample-rate conversion lib p libsoxr-lsr0 – High quality 1D sample-rate conversion lib p libsoxr-lsr0:i386 – High quality 1D sample-rate conversion lib p libsoxr0 – High quality 1D sample-rate conversion lib p libsoxr0:i386 – High quality 1D sample-rate conversion lib sudo aptitude install libsoxr-lsr0 Check contents … Continue reading
Posted in Linux Audio
Comments Off on Using libsoxr-lsr in Alsa Rate Plugin with LD_PRELOAD