{"id":31748,"date":"2023-01-24T08:51:09","date_gmt":"2023-01-24T03:21:09","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-jack-as-primary-audio-driver-closed\/"},"modified":"2023-01-24T08:51:09","modified_gmt":"2023-01-24T03:21:09","slug":"solved-jack-as-primary-audio-driver-closed","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-jack-as-primary-audio-driver-closed\/","title":{"rendered":"[Solved] Jack as primary audio driver? [closed]"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-18410743\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"18410743\" data-parentid=\"18164644\" data-score=\"2\" data-position-on-page=\"1\" data-highest-scored=\"0\" data-question-has-accepted-highest-score=\"0\" itemprop=\"suggestedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>As you mentioned, the device number for your audio card will change between runs. You&#8217;ll definitely want to make sure to choose the correct device in QJackCtrl. <code>aplay -l<\/code> should list the available devices in a way that will let you handle them through script.<\/p>\n<p>To answer your second question, there are PulseAudio modules that enable you to use Jack as the handler for Pulse sound. Take a look at <code>pulseaudio-module-jack<\/code> for Ubuntu\/Debian (it may be available for your distro; <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/trac.jackaudio.org\/wiki\/WalkThrough\/User\/PulseOnJack\">this<\/a> only mentions how to do it on Debian-based systems, and as I run Ubuntu I can&#8217;t immediately check on anything else). In my case, I needed to choose it in the Ubuntu Sound Settings as well for it to work (as far as I can tell). You might also take a look at <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/jackaudio.org\/pulseaudio_and_jack\">http:\/\/jackaudio.org\/pulseaudio_and_jack<\/a> for more on using Pulse and Jack together.<\/p>\n<p>Also, a free bonus snippet of messy Bash script:<\/p>\n<pre><code>get_alsa_device ()\n{\n    # USAGE:\n    # In Bash:\n    # var=\"$(get_alsa_device \"card_name\" \"device_name\")\"\n\n    # DESCRIPTION:\n    # Parses aplay's output to find the device specified by card and device\n\n    # ARGUMENTS: \n    # card_name The name of the card to be found\n    # device_name   The name of the device to be found\n\n    # STDOUT:\n    # Writes the proper alsa device name (in hd0,0 style) to stdout\n\n    # RETURN VALUE:\n    # 0 Succeeded in generating output value\n    # 1 Failed to generate output value\n\n    aplay --list-devices | grep --fixed-strings \"$1\" | grep --fixed-strings --max-count 1 \"$2\" | sed -r 's\/^card ([0-9]{1,}): .*, device ([0-9]{1,}): .*$\/hw:\\1,\\2\/; T die; q 0; :die; Q 1'\n}\n<\/code><\/pre>\n<p>That&#8217;s from a tool I wrote that could automatically configure Jack to run with whatever card the user desired. This function just finds an ALSA device matching the provided names and returns its name in Jack style (I&#8217;m pretty sure&#8230;).<\/p>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\"><\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved Jack as primary audio driver? [closed] <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] As you mentioned, the device number for your audio card will change between runs. You&#8217;ll definitely want to make sure to choose the correct device in QJackCtrl. aplay -l should list the available devices in a way that will let you handle them through script. To answer your second question, there are PulseAudio modules &#8230; <a title=\"[Solved] Jack as primary audio driver? [closed]\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-jack-as-primary-audio-driver-closed\/\" aria-label=\"More on [Solved] Jack as primary audio driver? [closed]\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[1613,5865],"class_list":["post-31748","post","type-post","status-publish","format-standard","hentry","category-solved","tag-audio","tag-jack"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[Solved] Jack as primary audio driver? [closed] - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-jack-as-primary-audio-driver-closed\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Jack as primary audio driver? [closed] - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] As you mentioned, the device number for your audio card will change between runs. You&#8217;ll definitely want to make sure to choose the correct device in QJackCtrl. aplay -l should list the available devices in a way that will let you handle them through script. To answer your second question, there are PulseAudio modules ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-jack-as-primary-audio-driver-closed\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-24T03:21:09+00:00\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-jack-as-primary-audio-driver-closed\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-jack-as-primary-audio-driver-closed\\\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/person\\\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Jack as primary audio driver? [closed]\",\"datePublished\":\"2023-01-24T03:21:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-jack-as-primary-audio-driver-closed\\\/\"},\"wordCount\":215,\"publisher\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\"},\"keywords\":[\"audio\",\"jack\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-jack-as-primary-audio-driver-closed\\\/\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-jack-as-primary-audio-driver-closed\\\/\",\"name\":\"[Solved] Jack as primary audio driver? [closed] - JassWeb\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#website\"},\"datePublished\":\"2023-01-24T03:21:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-jack-as-primary-audio-driver-closed\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-jack-as-primary-audio-driver-closed\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-jack-as-primary-audio-driver-closed\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Jack as primary audio driver? [closed]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#website\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/jassweb.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/jass-website-logo-1.png\",\"contentUrl\":\"https:\\\/\\\/jassweb.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/person\\\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400\",\"contentUrl\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\\\/\\\/jassweb.com\"],\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/author\\\/jaspritsinghghumangmail-com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Jack as primary audio driver? [closed] - JassWeb","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jassweb.com\/solved\/solved-jack-as-primary-audio-driver-closed\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Jack as primary audio driver? [closed] - JassWeb","og_description":"[ad_1] As you mentioned, the device number for your audio card will change between runs. You&#8217;ll definitely want to make sure to choose the correct device in QJackCtrl. aplay -l should list the available devices in a way that will let you handle them through script. To answer your second question, there are PulseAudio modules ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-jack-as-primary-audio-driver-closed\/","og_site_name":"JassWeb","article_published_time":"2023-01-24T03:21:09+00:00","author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-jack-as-primary-audio-driver-closed\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-jack-as-primary-audio-driver-closed\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Jack as primary audio driver? [closed]","datePublished":"2023-01-24T03:21:09+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-jack-as-primary-audio-driver-closed\/"},"wordCount":215,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["audio","jack"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-jack-as-primary-audio-driver-closed\/","url":"https:\/\/jassweb.com\/solved\/solved-jack-as-primary-audio-driver-closed\/","name":"[Solved] Jack as primary audio driver? [closed] - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2023-01-24T03:21:09+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-jack-as-primary-audio-driver-closed\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-jack-as-primary-audio-driver-closed\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-jack-as-primary-audio-driver-closed\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Jack as primary audio driver? [closed]"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/31748","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=31748"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/31748\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=31748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=31748"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=31748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}