{"id":45,"date":"2010-08-14T17:32:58","date_gmt":"2010-08-14T17:32:58","guid":{"rendered":"http:\/\/robert.vanyi.org\/?p=45"},"modified":"2010-08-14T17:32:58","modified_gmt":"2010-08-14T17:32:58","slug":"45","status":"publish","type":"post","link":"https:\/\/robert.vanyi.org\/en\/archives\/45","title":{"rendered":"XMBC, Lucid and PulseAudio"},"content":{"rendered":"<p>After I have upgraded our media PC to Ubuntu 10.4 (Lucid Lynx) audio stopped working in XBMC. Upgrading to the latest XBMC ubuntu packages from PPA didn&#8217;t help. After some experimenting, I have figured out that pulseaudio had to be started. I have the XBMC session file (<em>\/usr\/share\/xsessions\/XBMC.desktop<\/em>),  and it turned out that it simply starts <em>xbmc-standalone<\/em>, which in turn starts <em>pulse-session<\/em>. But only if it exists. On Lucid it does not.<\/p>\n<p>Fortunately we can use pulseaudio &#8211;start instead. So I just modified the startup script and now it works fine.<\/p>\n<p><!--break--><br \/>\nFor the records <em>\/usr\/bin\/xbmc-standalone<\/em> before:<code><br \/>\n#!\/bin\/sh<br \/>\nif which pulse-session; then<br \/>\n  pulse-session xbmc --standalone \"$@\"<br \/>\nelse<br \/>\n  xbmc --standalone \"$@\"<br \/>\nfi<br \/>\n<\/code><\/p>\n<p>And after:<code><br \/>\nif which pulseaudio; then<br \/>\n  pulseaudio --start<br \/>\nfi<br \/>\nxbmc --standalone \"$@\"<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After I have upgraded our media PC to Ubuntu 10.4 (Lucid Lynx) audio stopped working in XBMC. Upgrading to the latest XBMC ubuntu packages from PPA didn&#8217;t help. After some experimenting, I have figured out that pulseaudio had to be started. I have the XBMC session file (\/usr\/share\/xsessions\/XBMC.desktop), and it turned out that it simply &hellip; <a href=\"https:\/\/robert.vanyi.org\/en\/archives\/45\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">XMBC, Lucid and PulseAudio<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-45","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/robert.vanyi.org\/en\/wp-json\/wp\/v2\/posts\/45","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/robert.vanyi.org\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/robert.vanyi.org\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/robert.vanyi.org\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/robert.vanyi.org\/en\/wp-json\/wp\/v2\/comments?post=45"}],"version-history":[{"count":0,"href":"https:\/\/robert.vanyi.org\/en\/wp-json\/wp\/v2\/posts\/45\/revisions"}],"wp:attachment":[{"href":"https:\/\/robert.vanyi.org\/en\/wp-json\/wp\/v2\/media?parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/robert.vanyi.org\/en\/wp-json\/wp\/v2\/categories?post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/robert.vanyi.org\/en\/wp-json\/wp\/v2\/tags?post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}