{"id":773,"date":"2017-05-19T19:50:24","date_gmt":"2017-05-19T19:50:24","guid":{"rendered":"http:\/\/mclements.net\/blogWP\/?p=773"},"modified":"2017-05-19T19:52:02","modified_gmt":"2017-05-19T19:52:02","slug":"ubuntu-vlc-dac-audio","status":"publish","type":"post","link":"http:\/\/mclements.net\/blogWP\/index.php\/2017\/05\/19\/ubuntu-vlc-dac-audio\/","title":{"rendered":"Ubuntu VLC DAC Audio"},"content":{"rendered":"<p>I recently got a <a href=\"http:\/\/mclements.net\/blogWP\/index.php\/2017\/03\/18\/review-jds-labs-element\/\">JDS Labs Element<\/a> DAC + headphone amp. I drive it from my Ubuntu desktop using <a href=\"http:\/\/www.videolan.org\">VLC<\/a> as the audio player. It&#8217;s plug and play &#8211; no drivers needed. However, best results come after applying a few tips:<\/p>\n<p><strong>VLC Audio Device<\/strong>: The DAC has 17 output devices that appear in VLC. Which one to use? Use <strong>Pulse Audio<\/strong> if you want to hear a mix of all audio on the computer. Pulse Audio mixes all sources and resamples them if necessary to a common rate. Use <strong>JDS Labs Element DAC, USB audio direct hardware device without any conversions<\/strong> if you want to hear the audio track in its native sampling rate &amp; bit depth, and nothing else. I prefer this for best sound quality.<\/p>\n<p><strong>VLC Output Module<\/strong>: use <strong>Pulseaudio audio output<\/strong> if you want to hear a mix of all audio on the computer. Use <strong>ALSA audio output<\/strong> if you want to bypass Pulseaudio to hear the audio track and nothing else.<\/p>\n<p>VLC occasionally stopped playing and popped up an error saying &#8220;Device or resource busy&#8221;. If you&#8217;re using ALSA, only one app at a time can use the device. For example, if the browser tries to play a video it can steal the device from VLC. Also, VLC seems to have a bug in which it occasionally steals the device from itself when switching tracks. Adding a udev rule made this happen far less often. Add a file called <strong>41-jdslabs-dac.rules<\/strong> to directory <strong>\/etc\/udev\/rules.d<\/strong>. Make the contents like this:<\/p>\n<pre># JDS Labs Element DAC\r\nSUBSYSTEM==\"usb\", ATTR{idVendor}==\"262a\", MODE=\"0666\", GROUP=\"plugdev\"<\/pre>\n<p>This makes the JDS Labs DAC accessible to any Linux user.<\/p>\n<p><strong>Audio Glitches<\/strong>: Occasionally, once every hour or so, the audio will stop for a moment, then resume. I believe this is because the JDS Element uses USB adaptive mode, not async. This makes it compatible with more computers. Some people claim that adaptive move has more jitter and lower sound quality, but measurements belie this claim.<\/p>\n<p><strong>More audio glitches<\/strong>: Occasionally I would hear tics in the music, as if the computer CPU were too busy to deliver audio. Re-nicing the VLC process to -15 fixes this.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently got a JDS Labs Element DAC + headphone amp. I drive it from my Ubuntu desktop using VLC as the audio player. It&#8217;s plug and play &#8211; no drivers needed. However, best results come after applying a few tips: VLC Audio Device: The DAC has 17 output devices that appear in VLC. Which &hellip; <a href=\"http:\/\/mclements.net\/blogWP\/index.php\/2017\/05\/19\/ubuntu-vlc-dac-audio\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Ubuntu VLC DAC Audio<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2],"tags":[],"class_list":["post-773","post","type-post","status-publish","format-standard","hentry","category-audio","category-tech"],"_links":{"self":[{"href":"http:\/\/mclements.net\/blogWP\/index.php\/wp-json\/wp\/v2\/posts\/773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/mclements.net\/blogWP\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mclements.net\/blogWP\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mclements.net\/blogWP\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/mclements.net\/blogWP\/index.php\/wp-json\/wp\/v2\/comments?post=773"}],"version-history":[{"count":2,"href":"http:\/\/mclements.net\/blogWP\/index.php\/wp-json\/wp\/v2\/posts\/773\/revisions"}],"predecessor-version":[{"id":775,"href":"http:\/\/mclements.net\/blogWP\/index.php\/wp-json\/wp\/v2\/posts\/773\/revisions\/775"}],"wp:attachment":[{"href":"http:\/\/mclements.net\/blogWP\/index.php\/wp-json\/wp\/v2\/media?parent=773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mclements.net\/blogWP\/index.php\/wp-json\/wp\/v2\/categories?post=773"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mclements.net\/blogWP\/index.php\/wp-json\/wp\/v2\/tags?post=773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}