<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-845380744110197598</id><updated>2024-09-14T06:16:41.153-07:00</updated><category term="debian"/><category term="linux"/><category term="ubuntu"/><category term="alsa"/><category term="asym"/><category term="audio"/><category term="dmix"/><category term="dsnoop"/><category term="google"/><category term="google earth"/><category term="google sky"/><category term="kubuntu"/><category term="mixing"/><category term="sound"/><title type='text'>buglandia</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://buglandia.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/845380744110197598/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://buglandia.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-845380744110197598.post-1498310365415949300</id><published>2007-08-31T08:36:00.000-07:00</published><updated>2007-09-01T15:57:07.039-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="alsa"/><category scheme="http://www.blogger.com/atom/ns#" term="asym"/><category scheme="http://www.blogger.com/atom/ns#" term="audio"/><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="dmix"/><category scheme="http://www.blogger.com/atom/ns#" term="dsnoop"/><category scheme="http://www.blogger.com/atom/ns#" term="kubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mixing"/><category scheme="http://www.blogger.com/atom/ns#" term="sound"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>HOWTO: Software audio mixing in Ubuntu</title><content type='html'>&lt;div style=&quot;float: right;&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;digg_url = &#39;http://buglandia.blogspot.com/2007/08/howto-software-audio-mixing-in-ubuntu.html&#39;;&lt;/script&gt;&lt;br /&gt;&lt;script src=&quot;http://digg.com/tools/diggthis.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;/div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;The Problem&lt;/span&gt;: Some distros don&#39;t configure correctly the sound system out of the box. More specifically - Debian and Ubuntu/Kubuntu. If your sound card doesn&#39;t support hardware channel mixing (most onboard sound chips used in laptops don&#39;t), then only one application can play/record sound at a time.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Background Info&lt;/span&gt;: Several years ago, in an attempt to solve this problem, sound servers (or daemons) were invented - e.g. ESD/EsounD (default in GNOME) and aRts (default in KDE). The idea behind sound daemons is that applications shouldn&#39;t access the sound card directly, but rather interact with the sound server, which in turn performs software channel mixing, and plays the resulting stream through OSS or ALSA.&lt;br /&gt;&lt;br /&gt;This approach however is fundamentally wrong, and doesn&#39;t really solve the issue. It is assumed groundlessly that every application will use the same sound server, and not the sound system directly. Even a single application accessing the sound card directly is enough to prevent the sound server from working. Besides, both ESD and aRts have latency problems, which makes them unsuitable for a number of purposes, for example watching movies.&lt;br /&gt;&lt;br /&gt;Fortunately, for quite some time now, the ALSA sound system itself has had built-in software channel mixing through the &lt;span style=&quot;font-style: italic;&quot;&gt;dmix&lt;/span&gt;, &lt;span style=&quot;font-style: italic;&quot;&gt;dsnoop&lt;/span&gt;, and &lt;span style=&quot;font-style: italic;&quot;&gt;asym&lt;/span&gt; plugins. It should be used automatically when hardware mixing is unavailable. But for some unknown reason in Debian and Ubuntu this is broken and doesn&#39;t work by default.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;The Solution&lt;/span&gt;: Create the file &lt;span style=&quot;font-style: italic;&quot;&gt;/etc/asound.conf&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 153);font-size:85%;&quot; &gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;gksudo gedit /etc/asound.conf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(if in KDE, try &#39;&lt;span style=&quot;color: rgb(0, 0, 153);font-size:85%;&quot; &gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;kdesu kate /etc/asound.conf&lt;/span&gt;&lt;/span&gt;&#39; instead)&lt;br /&gt;&lt;br /&gt;Copy/Paste the following into the text editor:&lt;br /&gt;&lt;br /&gt;&lt;pre  style=&quot;color: rgb(0, 0, 153);font-family:courier new;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;pcm.my_card {&lt;br /&gt;  type hw&lt;br /&gt;  card 0&lt;br /&gt;  # mmap_emulation true&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;pcm.dmixed {&lt;br /&gt;  type dmix&lt;br /&gt;  ipc_key 1024&lt;br /&gt;  #  ipc_key_add_uid false   # let multiple users share&lt;br /&gt;  #  ipc_perm 0666           # IPC permissions for multi user sharing (octal, default 0600)&lt;br /&gt;  slave {&lt;br /&gt;  pcm &quot;my_card&quot;&lt;br /&gt;  #   rate 48000&lt;br /&gt;  #   period_size 512&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;pcm.dsnooped {&lt;br /&gt;  type dsnoop&lt;br /&gt;  ipc_key 2048&lt;br /&gt;  slave {&lt;br /&gt;  pcm &quot;my_card&quot;&lt;br /&gt;  #   rate 48000&lt;br /&gt;  #   period_size 128&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;pcm.asymed {&lt;br /&gt;  type asym&lt;br /&gt;  playback.pcm &quot;dmixed&quot;&lt;br /&gt;  capture.pcm &quot;dsnooped&quot;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;pcm.pasymed {&lt;br /&gt;  type plug&lt;br /&gt;  slave.pcm &quot;asymed&quot;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;pcm.dsp0 {&lt;br /&gt;  type plug&lt;br /&gt;  slave.pcm &quot;asymed&quot;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;pcm.!default {&lt;br /&gt;  type plug&lt;br /&gt;  slave.pcm &quot;asymed&quot;&lt;br /&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;Save the file.&lt;br /&gt;&lt;br /&gt;Configure your applications to use ALSA directly.&lt;br /&gt;&lt;br /&gt;Restart.&lt;br /&gt;&lt;br /&gt;All done. Enjoy :)&lt;br /&gt;&lt;br /&gt;P.S. If still having problems with some applications, you could experiment with uncommenting some of the commented lines in the file.&lt;br /&gt;&lt;br /&gt;P.P.S. For detailed explanation of what we just did, refer to &lt;a href=&quot;http://alsa.opensrc.org/index.php/Hardware_mixing%2C_software_mixing&quot;&gt;this page&lt;/a&gt; from the unofficial ALSA wiki.</content><link rel='replies' type='application/atom+xml' href='http://buglandia.blogspot.com/feeds/1498310365415949300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/845380744110197598/1498310365415949300' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/845380744110197598/posts/default/1498310365415949300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/845380744110197598/posts/default/1498310365415949300'/><link rel='alternate' type='text/html' href='http://buglandia.blogspot.com/2007/08/howto-software-audio-mixing-in-ubuntu.html' title='HOWTO: Software audio mixing in Ubuntu'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-845380744110197598.post-1379051231146134785</id><published>2007-08-23T15:10:00.000-07:00</published><updated>2007-08-28T08:10:00.993-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="google"/><category scheme="http://www.blogger.com/atom/ns#" term="google earth"/><category scheme="http://www.blogger.com/atom/ns#" term="google sky"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>HOWTO: Google Sky on Ubuntu/Debian</title><content type='html'>&lt;a style=&quot;font-style: italic;&quot; href=&quot;http://earth.google.com/sky/index.html&quot;&gt;Google Sky&lt;/a&gt; is the major new feature in the &lt;a href=&quot;http://googleblog.blogspot.com/2007/08/view-from-sky.html&quot;&gt;just released&lt;/a&gt; &lt;span style=&quot;font-style: italic;&quot;&gt;Google Earth&lt;/span&gt; 4.2. The proper way to install new applications on Debian-based linux distros (including Ubuntu) is using the package manager. However, Google does not provide a .deb package, so we will have to build one ourselves. Fortunately, it&#39;s very easy:&lt;br /&gt;&lt;br /&gt;First, download and install the latest version of &lt;span style=&quot;font-style: italic;&quot;&gt;googleearth-package&lt;/span&gt;:&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;wget&amp;nbsp;&lt;a href=&quot;http://ftp.debian.org/debian/pool/contrib/g/googleearth-package/googleearth-package_0.3.2_all.deb&quot;&gt;http://ftp.debian.org/debian/pool/contrib/g/googleearth-package/googleearth-package_0.3.2_all.deb&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;sudo dpkg -i googleearth-package_0.3.2_all.deb&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;sudo apt-get install -f&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now use &lt;span style=&quot;font-style: italic;&quot;&gt;googleearth-package&lt;/span&gt; to automatically create a .deb package for the latest Google Earth:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;make-googleearth-package&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Finally, install the resulting package:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;sudo dpkg -i googleearth_4.2.180.1134+0.3.2-1_i386.deb&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;sudo apt-get install -f&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;That&#39;s all. Start it from &lt;span style=&quot;font-style: italic;&quot;&gt;Applications&lt;/span&gt; -&gt; &lt;span style=&quot;font-style: italic;&quot;&gt;Internet&lt;/span&gt; -&gt; &lt;span style=&quot;font-style: italic;&quot;&gt;Google Earth&lt;/span&gt;. Press the &lt;span style=&quot;font-style: italic;&quot;&gt;Sky&lt;/span&gt; button and enjoy.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Note 1: Tested on Ubuntu Feisty 7.04 32-bit, but should work on any Debian / Ubuntu version. On 64-bit architectures, you may have to use the --force option with make-googleearth-package.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Note 2: If this how-to was useful to you, please &lt;/span&gt;&lt;/span&gt;&lt;a style=&quot;font-weight: bold; font-style: italic;&quot; href=&quot;http://digg.com/linux_unix/HOWTO_Google_Sky_on_Ubuntu_Debian_the_easy_way&quot;&gt;digg it&lt;/a&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://buglandia.blogspot.com/feeds/1379051231146134785/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/845380744110197598/1379051231146134785' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/845380744110197598/posts/default/1379051231146134785'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/845380744110197598/posts/default/1379051231146134785'/><link rel='alternate' type='text/html' href='http://buglandia.blogspot.com/2007/08/howto-google-sky-on-ubuntu.html' title='HOWTO: Google Sky on Ubuntu/Debian'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-845380744110197598.post-100713788781989368</id><published>2007-08-01T08:13:00.001-07:00</published><updated>2007-08-01T08:13:20.130-07:00</updated><title type='text'>Hi</title><content type='html'>Welcome to my new blog</content><link rel='replies' type='application/atom+xml' href='http://buglandia.blogspot.com/feeds/100713788781989368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/845380744110197598/100713788781989368' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/845380744110197598/posts/default/100713788781989368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/845380744110197598/posts/default/100713788781989368'/><link rel='alternate' type='text/html' href='http://buglandia.blogspot.com/2007/08/hi.html' title='Hi'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>