{"id":2051,"date":"2013-06-28T12:58:54","date_gmt":"2013-06-28T16:58:54","guid":{"rendered":"http:\/\/www.braindeadprojects.com\/blog\/?p=2051"},"modified":"2013-06-28T12:58:54","modified_gmt":"2013-06-28T16:58:54","slug":"using-alsa-plugins-to-stop-scaring-the-cats","status":"publish","type":"post","link":"http:\/\/www.braindeadprojects.com\/blog\/what\/using-alsa-plugins-to-stop-scaring-the-cats\/","title":{"rendered":"Using ALSA plugins to stop scaring the cats."},"content":{"rendered":"<p>The <a title=\"XBMCbuntu\" href=\"http:\/\/wiki.xbmc.org\/index.php?title=XBMCbuntu\" target=\"_blank\">XMBCbuntu<\/a> <a title=\"ZBOX AD10\" href=\"http:\/\/www.zotacusa.com\/zbox-nano-ad10.html\" target=\"_blank\">ZBOX server<\/a> has really changed things in my house. It&#8217;s become hard to justify the $50+ cable bill seeing as how I only watch one television show when it originally airs (<a title=\"Breaking Bad\" href=\"http:\/\/www.amctv.com\/shows\/breaking-bad\" target=\"_blank\">Breaking Bad<\/a>).\u00a0 I&#8217;m not invested in a Triple Play package &#8211; I get my Internet access from a 5Ghz Ubiquiti link to my office (in addition to an aDSL backup line), and for phone service I have an <a title=\"Asterisk Server\" href=\"http:\/\/www.braindeadprojects.com\/blog\/what\/the-new-voice-lan\/\" target=\"_blank\">Asterisk server as a PBX<\/a> with a SIP trunk to <a title=\"Teliax\" href=\"https:\/\/teliax.com\/\" target=\"_blank\">Teliax<\/a>. Quite simply, cable doesn&#8217;t do much for me.<\/p>\n<p>I&#8217;ve also cut down on shelves &#8212; my video and music collection is being converted to digital and packed away in the basement. Most books I purchase on my <a title=\"Nook\" href=\"http:\/\/www.barnesandnoble.com\/u\/nook\/379003208\/\" target=\"_blank\">Nook<\/a>. If I can&#8217;t buy a video or album new as\u00a0 a DRM free digital download, I simply don&#8217;t.<\/p>\n<p>The only issue so far with the XBMCbuntu set-top box has been audio &#8211; the Radeon HD 6250\/6310 sound card seems to have no hardware feature to increase or decrease audio &#8212; only mute it. That means I turn the TV up <em>really<\/em> loud to watch an episode of <a title=\"The Wire\" href=\"http:\/\/en.wikipedia.org\/wiki\/The_Wire\" target=\"_blank\">The Wire<\/a>, and when my wife switches back to the Nintendo Wii the sound is startling.<\/p>\n<figure id=\"attachment_2063\" aria-describedby=\"caption-attachment-2063\" style=\"width: 361px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.braindeadprojects.com\/blog\/wp-content\/SilentLoudWire.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2063\" title=\"the wiRE\" alt=\"SilentLoudWire\" src=\"http:\/\/www.braindeadprojects.com\/blog\/wp-content\/SilentLoudWire.png\" width=\"361\" height=\"241\" srcset=\"http:\/\/www.braindeadprojects.com\/blog\/wp-content\/SilentLoudWire.png 361w, http:\/\/www.braindeadprojects.com\/blog\/wp-content\/SilentLoudWire-300x200.png 300w\" sizes=\"(max-width: 361px) 100vw, 361px\" \/><\/a><figcaption id=\"caption-attachment-2063\" class=\"wp-caption-text\">A whisper then a YELL!<\/figcaption><\/figure>\n<p>Thankfully <a title=\"ALSA\" href=\"http:\/\/www.alsa-project.org\/main\/index.php\/Main_Page\" target=\"_blank\">ALSA<\/a> is more than just the ALSA mixer, and has an entire plugin architecture behind it.<\/p>\n<p><a href=\"http:\/\/www.braindeadprojects.com\/blog\/wp-content\/alsalogo.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2060\" alt=\"alsalogo\" src=\"http:\/\/www.braindeadprojects.com\/blog\/wp-content\/alsalogo.gif\" width=\"129\" height=\"129\" \/><\/a><\/p>\n<p>Using an .asoundrc file, I&#8217;m able to connect my HDMI audio output to a softvol plugin and increase audio that way. No more cats running from the upstairs loft scared half to death.<\/p>\n<blockquote><p>pcm.hdmi_formatted {<br \/>\ntype plug<br \/>\nslave.pcm &#8220;dmix:0,3&#8221; #card 0, device 3<br \/>\n}<\/p>\n<p>pcm.hdmi_complete {<br \/>\ntype softvol<br \/>\nslave.pcm hdmi_formatted<br \/>\ncontrol.name hdmi_volume<br \/>\ncontrol.card 0<br \/>\nmax_dB 50.0<br \/>\n}<\/p>\n<p>pcm.!default pcm.hdmi_complete<\/p>\n<p>&nbsp;<\/p><\/blockquote>\n<p>Quite simply, I&#8217;m binding the sound card with a softvol plugin, setting it&#8217;s maximum gain to 50dB. Set the volume using alsamixer, and store your settings using &#8220;alsactl store&#8221; so they persist across reboots.<\/p>\n<figure id=\"attachment_2078\" aria-describedby=\"caption-attachment-2078\" style=\"width: 448px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.braindeadprojects.com\/blog\/wp-content\/ALSAmixer.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2078    \" alt=\"Voil\u00e0 -- a way to boost audio.\" src=\"http:\/\/www.braindeadprojects.com\/blog\/wp-content\/ALSAmixer.png\" width=\"448\" height=\"282\" srcset=\"http:\/\/www.braindeadprojects.com\/blog\/wp-content\/ALSAmixer.png 806w, http:\/\/www.braindeadprojects.com\/blog\/wp-content\/ALSAmixer-300x189.png 300w\" sizes=\"(max-width: 448px) 100vw, 448px\" \/><\/a><figcaption id=\"caption-attachment-2078\" class=\"wp-caption-text\">Voil\u00e0 &#8212; a way to boost audio.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>While this is the first time I&#8217;ve utilized ALSA this way, I&#8217;ve long found that while watching movies on my netbook during long flights, mplayer&#8217;s softvol feature is extremely useful. You might find this trick handy when trying to hear a film over a loud jet engine:<\/p>\n<blockquote><p>mplayer -softvol-max 100 RobotAndFrank.avi<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_2087\" aria-describedby=\"caption-attachment-2087\" style=\"width: 384px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.braindeadprojects.com\/blog\/wp-content\/RobotAndFrankMN.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2087\" alt=\"Robot and Frank\" src=\"http:\/\/www.braindeadprojects.com\/blog\/wp-content\/RobotAndFrankMN-300x180.jpg\" width=\"384\" height=\"230\" srcset=\"http:\/\/www.braindeadprojects.com\/blog\/wp-content\/RobotAndFrankMN-300x180.jpg 300w, http:\/\/www.braindeadprojects.com\/blog\/wp-content\/RobotAndFrankMN.jpg 620w\" sizes=\"(max-width: 384px) 100vw, 384px\" \/><\/a><figcaption id=\"caption-attachment-2087\" class=\"wp-caption-text\">A funny and bittersweet movie I watched on a recent flight.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The XMBCbuntu ZBOX server has really changed things in my house. It&#8217;s become hard to justify the $50+ cable bill seeing as how I only watch one television show when it originally airs (Breaking Bad).\u00a0 I&#8217;m not invested in a Triple Play package &#8211; I get my Internet access from a 5Ghz Ubiquiti link to &hellip; <a href=\"http:\/\/www.braindeadprojects.com\/blog\/what\/using-alsa-plugins-to-stop-scaring-the-cats\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Using ALSA plugins to stop scaring the cats.<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,29,1],"tags":[],"class_list":["post-2051","post","type-post","status-publish","format-standard","hentry","category-braindeadtip","category-linux","category-what"],"_links":{"self":[{"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/posts\/2051"}],"collection":[{"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/comments?post=2051"}],"version-history":[{"count":42,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/posts\/2051\/revisions"}],"predecessor-version":[{"id":2097,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/posts\/2051\/revisions\/2097"}],"wp:attachment":[{"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/media?parent=2051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/categories?post=2051"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/tags?post=2051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}