{"id":677,"date":"2007-02-06T00:34:00","date_gmt":"2007-02-06T00:34:00","guid":{"rendered":"http:\/\/www.celesteh.com\/blog\/2007\/02\/06\/jacked\/"},"modified":"2015-06-19T00:24:47","modified_gmt":"2015-06-18T23:24:47","slug":"jacked","status":"publish","type":"post","link":"https:\/\/www.celesteh.com\/blog\/2007\/02\/06\/jacked\/","title":{"rendered":"Jacked"},"content":{"rendered":"<p>Yeah, so I can get Ardour to display on a remote machine, but forget about making sounds thus displayed.  Run it in VNC and it&#8217;s fine.  Run with ssh X tunneling, and there are problems.  What kind of problems, you ask?<\/p>\n<pre>\nallocate_mach_clientport: can't find mach server port\nCan't allocate mach port\n<\/pre>\n<p>For the longest time, I thought that error was originating within Ardour.  So I downloaded the source.  Man, you need a ton of libraries to compile it, several of which are either in Fink&#8217;s unstable tree or not present within fink at all.  Ardour developers use Darwin Ports, I guess.  Anyway, the fink version of jack absolutely does not work for me.  So I was giving up on the project, when I looking at console logs revealed that the problem seemed to be coming from Jack. <\/p>\n<p>Maybe if I could just discover the name of the jack sever, there exists an undocumented command line argument to pass to Ardour to tell it which server to use!  Fortunately, there exists a utility for just such discovery: jack_lsp.  So after learning of it&#8217;s existence, I typed in the command and got:<\/p>\n<pre>\nallocate_mach_clientport: can't find mach server port\nCan't allocate mach port\njack_client_open() failed, status = 0x  \n<\/pre>\n<p>aha!  So I downloaded the JackOSX code and it was a terrible mess.  So I downloaded the Jackit code, but it doesn&#8217;t play well with core audio.  There&#8217;s some goofy thing on mactel computers such that you have to create an aggregate device or else in and outs are treated differently.  There&#8217;s probably a command line argument to fix this, but I like the nice JackOSC GUI, so I went back to their messy, messy code and started banging away at the core audio driver, since that seemed like a possible culprit.<br \/>\nSeveral hours later, after learning about some macros in C that I&#8217;d never heard of and borrowing some code form JackIt and otherwise swearing, I got a new library for coreaudio to build and link.  Hooray.  That was way too much effort.  And I fired up the JackOSC GUI and everything worked.  Yay!<br \/>\nAnd then I typed jack_lsp and got the same error again.  grrrr.  The code for jack_lsp is not in the Jack OSX source repository, as far as I can tell.  It is included with JackIt, but it&#8217;s clearly not the problem.  The problem is some Jack library that they ship out as a binary.  Perhaps using my special sekrit powers, I can build the JackIT kit to use my core audio library, since it&#8217;s got a bunch of jackit code in there now anyway.  Or maybe I can give up and just use VNC.<br \/>\nAnyway, this is why I haven&#8217;t written any music the last few days, nor implemented a very, very fast pitch tracker that just uses the samples around zero crossings.<br \/>\nIn other news, the weird mole on my back was not cancer.  Wonder why it itched so much.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yeah, so I can get Ardour to display on a remote machine, but forget about making sounds thus displayed. Run it in VNC and it&#8217;s fine. Run with ssh X tunneling, and there are problems. What kind of problems, you ask? allocate_mach_clientport: can&#8217;t find mach server port Can&#8217;t allocate mach port For the longest time, &hellip; <a href=\"https:\/\/www.celesteh.com\/blog\/2007\/02\/06\/jacked\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Jacked<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[1],"tags":[38,76,91,156,135],"class_list":["post-677","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-ardour","tag-celesteh","tag-jack","tag-mac","tag-os-x"],"_links":{"self":[{"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/posts\/677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/comments?post=677"}],"version-history":[{"count":1,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/posts\/677\/revisions"}],"predecessor-version":[{"id":2906,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/posts\/677\/revisions\/2906"}],"wp:attachment":[{"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/media?parent=677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/categories?post=677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/tags?post=677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}