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:

Bash | view plain | copy to clipboard by clicking on icon (via flash)  
#! /bin/bash
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libsoxr-lsr.so.0
exec /usr/bin/pulseaudio $@ 

Do not forget to set it executable:

Bash | view plain | copy to clipboard by clicking on icon (via flash)  
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 :-)

This entry was posted in Linux Audio. Bookmark the permalink.

13 Responses to Pulseaudio with LD_PRELOADing libsoxr-lsr

  1. I was suggested this web site through my cousin. I’m now not
    sure whether or not this submit is written via him as no one else realize
    such unique about my problem. You are incredible! Thank
    you!

    Look into my website online dating

  2. With havin so much written content do you ever run into any problems
    of plagorism or copyright violation? My website has a
    lot of exclusive content I’ve either written myself or outsourced but it appears a lot of
    it is popping it up all over the internet without my agreement.
    Do you know any methods to help stop content from being stolen? I’d certainly appreciate
    it.

    Also visit my web-site – age of sparta hack

  3. you are in reality a good webmaster. The site loading pace is amazing.
    It kind of feels that you are doing any distinctive trick.

    Moreover, The contents are masterwork. you’ve done a great activity on this subject!

    Also visit my web blog online paid surveys

  4. Good info. Lucky me I recently found your site by accident (stumbleupon).
    I’ve saved it for later!

  5. incesto says:

    I have to thank you for the efforts you’ve put in writing this site.

    I’m hoping to check out the same high-grade content from you in the future as well.
    In truth, your creative writing abilities has inspired me to get my very own blog now ;)

  6. Just desire to say your article is as surprising. The clearness to your publish is
    simply excellent and that i could think you are a professional on this subject.

    Well together with your permission allow me to grasp your RSS feed to stay up to date with drawing close post.
    Thanks 1,000,000 and please continue the enjoyable work.

    Feel free to visit my webpage … LEGO Marvel Super Heroes

  7. code wifi says:

    Write more, thats all I have to say. Literally,
    it seems as though you relied on the video to make your point.

    You definitely know what youre talking about, why waste your intelligence on just posting
    videos to your weblog when you could be giving us something enlightening to read?

    My website: code wifi

  8. Philip says:

    Have you ever considered creating an ebook or guest authoring on other blogs?
    I have a blog centered on tthe same subjects you discuss and would really like to have you share some stories/information. I know my visitors would appreciate your work.
    If you’re even remotely interested, feel free to send
    me an e mail.

    Also visit my web blog :: webpage (Philip)

  9. All of us develop business’ full internet presence including web style, search engine optimization, graphic design and social mass media management.

  10. It acquired been common in Romans and Emperor Tiberius to look at selection of herpes virus ceased the practice of ritual
    getting in open public.

  11. I have read so many posts on the topic of the blogger lovers but this
    piece of writing is in fact a fastidious piece of writing, keep it up.

    my blog … plastilina play doh (http://www.Westec.Co.nz/component/k2/item/66-high-rigid-guideless-glchttp://www.iwalksonoma.org/node/1121598http://www.iwalksonoma.org/node/1121599http://www.iwalksonoma.org/node/1121597http://www.iwalksonoma.org/node/1121600http://www.retailinasia.com/qanda/exc-lusive-free-vega-kaos-full-album-zip-mp3-2014http://6ab5ty.com/279404http://ouagaplus10.au.int/fr/node/196379http://ouagaplus10.au.int/fr/node/196378https://www.paypal-brasil.com.br/desenvolvedores/forum/index.php?/topic/262269-new-free-drake-if-you%E2%80%99re-reading-this-it%E2%80%99s-too-late-leak-unuse-d/http://6ab5ty.com/279405http://www.iwalksonoma.org/node/1121603http://www.iwalksonoma.org/node/1121601http://www.iwalksonoma.org/node/1121604http://www.iwalksonoma.org/node/1121602http://6ab5ty.com/279406http://6ab5ty.com/279407http://www.andengine.org/forums/gles2/c-h-e-rr-ies-free-indie-rock-pop-leak-this-here-defe-t104835.htmlhttp://www.retailinasia.com/qanda/ch-erries-album-download-short-movie-full-free-album-new-releasehttp://6ab5ty.com/279408http://www.iwalksonoma.org/node/1121605http://www.andengine.org/forums/updates/col-orf-ul-alternative-rock-download-nerve-endings-too-t104836.htmlhttp://www.iwalksonoma.org/node/1121606http://www.iwalksonoma.org/node/1121608http://ouagaplus10.au.int/fr/node/196380http://www.andengine.org/forums/updates/leak-dinner-free-2015-blu-sh-t104837.htmlhttp://www.andengine.org/forums/gles2/new-leak-miley-cyrus-new-album-p-oli-t-ica-l-t104839.htmlhttp://www.iwalksonoma.org/node/1121609http://www.iwalksonoma.org/node/1121610http://www.iwalksonoma.org/node/1121611http://6ab5ty.com/279412http://6ab5ty.com/279411http://www.iwalksonoma.org/node/1121612http://6ab5ty.com/279413http://www.retailinasia.com/qanda/blush-album-download-torul-measure-leak-download-free-2015http://6ab5ty.com/279414http://www.andengine.org/forums/gles2/new-pop-rock-leak-mikel-erentxun-corazones-leak-2015-t104842.htmlhttp://www.iwalksonoma.org/node/1121613http://www.andengine.org/forums/gles2/new-download-snowapple-illusion-full-album-2014-new-releas-t104841.htmlhttp://www.iwalksonoma.org/node/1121614http://www.iwalksonoma.org/node/1121615http://www.iwalksonoma.org/node/1121616http://www.andengine.org/forums/updates/cre-e-p-y-free-white-water-the-slow-show-new-album-downlo-t104843.htmlhttp://www.andengine.org/forums/gles2/free-free-download-kiss-me-once-live-at-the-sse-hydro-kylie-t104844.htmlhttp://www.andengine.org/forums/updates/mp3-download-colors-leak-2014-alt-rock-alt-metal-blu-s-t104845.htmlhttp://ouagaplus10.au.int/fr/node/196382http://ouagaplus10.au.int/fr/node/196383http://6ab5ty.com/279416http://www.iwalksonoma.org/node/1121617http://www.iwalksonoma.org/node/1121618http://www.andengine.org/forums/updates/ar-gu-e-new-words-to-the-blind-bo-ningen-savage-t104846.htmlhttp://www.retailinasia.com/qanda/folk-rock-zip-download-laura-marling-short-movie-full-free-album-profusehttp://www.iwalksonoma.org/node/1121621http://www.iwalksonoma.org/node/1121622http://www.iwalksonoma.org/node/1121624http://www.iwalksonoma.org/node/1121623http://6ab5ty.com/279419http://www.andengine.org/forums/gles2/where-can-i-get-indie-folk-leak-the-park-avenue-sobriety-t104848.htmlhttp://ouagaplus10.au.int/fr/node/196385http://ouagaplus10.au.int/fr/node/196384http://www.iwalksonoma.org/node/1121625http://www.iwalksonoma.org/node/1121626http://www.iwalksonoma.org/node/1121627http://www.iwalksonoma.org/node/1121628http://www.retailinasia.com/qanda/undesirable-free-free-ne-yo-non-fiction-leak-free-mp3-2014http://www.andengine.org/forums/updates/mp3-download-kate-havnevik-i-full-album-electronic-indie-t104850.htmlhttp://6ab5ty.com/279421http://www.iwalksonoma.org/node/1121629http://www.iwalksonoma.org/node/1121630http://www.andengine.org/forums/updates/new-free-download-big-data-2-0-free-2014-indi-t104851.htmlhttp://www.iwalksonoma.org/node/1121632http://www.iwalksonoma.org/node/1121631http://6ab5ty.com/279422http://ouagaplus10.au.int/fr/node/196386http://www.iwalksonoma.org/node/1121634http://www.iwalksonoma.org/node/1121633http://www.iwalksonoma.org/node/1121635http://www.retailinasia.com/qanda/leak-kaos-album-enormoushttp://www.iwalksonoma.org/node/1121636http://6ab5ty.com/279424http://www.iwalksonoma.org/node/1121637http://www.andengine.org/forums/updates/gree-dy-download-garage-rock-leak-live-in-san-francis-t104853.htmlhttp://www.iwalksonoma.org/node/1121638http://www.iwalksonoma.org/node/1121639http://www.iwalksonoma.org/node/1121640http://6ab5ty.com/279425http://ouagaplus10.au.int/fr/node/196388https://www.paypal-brasil.com.br/desenvolvedores/forum/index.php?/topic/262271-high-soul-rb-free-archie-beatz-the-chronicles-free-download/http://www.iwalksonoma.org/node/1121641http://www.iwalksonoma.org/node/1121642http://www.iwalksonoma.org/node/1121644http://www.iwalksonoma.org/node/1121643http://www.retailinasia.com/qanda/download-new-american-aquarium-full-album-get-now-free-hookhttp://6ab5ty.com/279426http://crossfitleyland.co.uk/newsletter-winter-2015/)

  12. Gisele says:

    Si bien también depende de la velocidad de salida de humos si es ventilación forzada; lo mejor es que un especialista te compruebe su desempeño.

  13. Name says:

    Thank you for this solution that drops the CPU significantly and give us really good resampling. The problem on my computer is that linux lose connection to Pulseaudio every now and then. You have an idea why this might happen? Secondly, what SoX resampling settings are being used?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*
captcha

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>