{"id":284,"date":"2008-06-17T11:24:54","date_gmt":"2008-06-17T11:24:54","guid":{"rendered":"http:\/\/blog.cyberwizzard.nl\/?p=284"},"modified":"2016-03-17T21:24:20","modified_gmt":"2016-03-17T20:24:20","slug":"why-pulseaudio-sucks","status":"publish","type":"post","link":"https:\/\/blog.cyberwizzard.nl\/?p=284","title":{"rendered":"Why Pulseaudio sucks&#8230;"},"content":{"rendered":"<p>A while back, I got really annoyed from the fact that when I was running Gentoo and I decided to play a game (Wine\/Cedega) like EVE Online, I either have the sound from EVE-Online, or from my desktop &#8211; but not both.<\/p>\n<p>This is usually due to a crappy sound card (no hardware mixing) and a driver which fails to fix this. I knew ALSA had dmix for software mixing but I read somewhere that pulseaudio was the new hot shot in the mixing scene. I was wrong.<\/p>\n<p>You see, after enabling pulseaudio in Gentoo, rebuilding a number of packages to support it (Xine-lib for example) and following the guides to make ALSA-only applications use pulseaudio as well (in fact by looping the sound back from ALSA to pulse and again to ALSA), it should just work &#8482;.<\/p>\n<p>My first attempts were fine, I used aplay to select the pulse channel, played 6 songs at once and all was well. When it was time to make Phonon (KDE4) use the new pulseaudio sink, nothing happened. I even used the workaround as explained on the pulseaudio page &#8211; but nothing helped. I finally made the default audio-sink pulseaudio.<\/p>\n<p>Next up: Wine. The first attempt to start Winamp went fine, except for the fact that I didn&#8217;t hear no sound. Looking in the logs, I see wine attempting to open the ALSA\/Pulseaudio library from &#8216;\/lib32&#8217;. For the more perceptive of you: yes, it want 32-bit libraries on my 64-bit system. Normally this is handled by a emulation package but guess what? The Gentoo emulation packages don&#8217;t feature these only slightly vital libraries.<\/p>\n<p>After reading the bug page which explained the problem, I found a site of someone who provided the 32-bit binary drivers for ALSA\/Pulseaudio. And indeed, after extraction into &#8216;\/lib32&#8217;, sound came to life from the mysterious world inside Wine.<\/p>\n<p>Then I tried to start World of Warcraft. The stuttering sound of a screwed up sound mixer emerged from my speakers and no matter how I started the game, the sound was useless. Finally I gave EVE-Online a try and it had the same, horrible sound output&#8230;<\/p>\n<p>So I reverted everything I did, read up on how dmix was supposed to work (which seemed like a lot less work after following the &#8216;simple&#8217; guide on the pulseaudio site), set up a software mixer and made it default and there we go &#8211; audio output for all!<\/p>\n<p>Now I don&#8217;t know who decided that pulseaudio was &#8216;lightweight&#8217; and &#8216;fast&#8217; but I know for sure that its neither &#8211; the default dmix extension for ALSA works a million times better&#8230;<\/p>\n<div class=\"wlWriterSmartContent\" id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:fb8d4868-f070-421b-a137-46c2163f20d0\" style=\"padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px\">Tags van Technorati: <a href=\"http:\/\/technorati.com\/tags\/gentoo\" rel=\"tag\">gentoo<\/a>,<a href=\"http:\/\/technorati.com\/tags\/pulseaudio\" rel=\"tag\">pulseaudio<\/a>,<a href=\"http:\/\/technorati.com\/tags\/alsa\" rel=\"tag\">alsa<\/a>,<a href=\"http:\/\/technorati.com\/tags\/dmix\" rel=\"tag\">dmix<\/a>,<a href=\"http:\/\/technorati.com\/tags\/eve-online\" rel=\"tag\">eve-online<\/a>,<a href=\"http:\/\/technorati.com\/tags\/wine\" rel=\"tag\">wine<\/a>,<a href=\"http:\/\/technorati.com\/tags\/cedega\" rel=\"tag\">cedega<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>A while back, I got really annoyed from the fact that when I was running Gentoo and I decided to play a game (Wine\/Cedega) like EVE Online, I either have the sound from EVE-Online, or from my desktop &#8211; but not both. This is usually due to a crappy sound card (no hardware mixing) and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[236,238,235,460,459,233,239,237,42,234,232,240],"class_list":["post-284","post","type-post","status-publish","format-standard","hentry","category-linux-gentoolinux","tag-hot","tag-mixing","tag-new","tag-no_ok","tag-not_ok","tag-pulseaudio","tag-scene","tag-shot","tag-the","tag-was","tag-why","tag-wrong"],"views":4242,"_links":{"self":[{"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/posts\/284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=284"}],"version-history":[{"count":1,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/posts\/284\/revisions"}],"predecessor-version":[{"id":449,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/posts\/284\/revisions\/449"}],"wp:attachment":[{"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}