<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[ALSA output error (snd\_pcm\_open) Device or resource busy]]></title><description><![CDATA[<p>I'm trying to connect PureData with LMMS... watched this video:<br />
<div class="embed-container"><iframe src="//www.youtube.com/embed/3g4i4vg192o" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div></p>
<p>But it doesn't work for me. After I click on ALSA (like the guy in the video) I get this error:<br />
&quot;ALSA output error (snd_pcm_open): Device or resource busy&quot;</p>
<p>I found this forum topic: <a href="http://puredata.hurleur.com/sujet-1396-alsa-issues" rel="nofollow">http://puredata.hurleur.com/sujet-1396-alsa-issues</a></p>
<p>but running pd with &quot;-alsa -alsaadd default&quot; added does not solve the problem for me...</p>
<p>My specs:<br />
Ubuntu up to date<br />
PureData 0.43.4</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 10:19:45 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/7655.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 22 Aug 2013 23:03:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ALSA output error (snd\_pcm\_open) Device or resource busy on Thu, 22 Aug 2013 23:03:30 GMT]]></title><description><![CDATA[<p>I'm trying to connect PureData with LMMS... watched this video:<br />
<div class="embed-container"><iframe src="//www.youtube.com/embed/3g4i4vg192o" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div></p>
<p>But it doesn't work for me. After I click on ALSA (like the guy in the video) I get this error:<br />
&quot;ALSA output error (snd_pcm_open): Device or resource busy&quot;</p>
<p>I found this forum topic: <a href="http://puredata.hurleur.com/sujet-1396-alsa-issues" rel="nofollow">http://puredata.hurleur.com/sujet-1396-alsa-issues</a></p>
<p>but running pd with &quot;-alsa -alsaadd default&quot; added does not solve the problem for me...</p>
<p>My specs:<br />
Ubuntu up to date<br />
PureData 0.43.4</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy</guid><dc:creator><![CDATA[jl2035]]></dc:creator><pubDate>Thu, 22 Aug 2013 23:03:30 GMT</pubDate></item><item><title><![CDATA[Reply to ALSA output error (snd\_pcm\_open) Device or resource busy on Sat, 24 Aug 2013 18:39:03 GMT]]></title><description><![CDATA[<p>Things have probably changed since that 2008 forum post. By now most Linux systems run Pulseaudio by default and Pd seems to be the only application not to work with Pulseaudio, but requiring an alsa device for itself. In order to play Pd together with other apps, everything must be routed through Jack. Pulseaudio can be routed through Jack too. There is a pd-dev list thread on this topic, starting here:</p>
<p><a href="http://www.mail-archive.com/pd-dev@iem.at/msg12160.html" rel="nofollow">http://www.mail-archive.com/pd-dev@iem.at/msg12160.html</a></p>
<p>The cool thing about this routing is: you can eventually send audio from any app to Pd and vice versa, including those apps which are not Jackified. I got this working on Xubuntu. But not on Kubuntu, unfortunately! Still have to find out why.</p>
<p>Katja</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/2</guid><dc:creator><![CDATA[katjav]]></dc:creator><pubDate>Sat, 24 Aug 2013 18:39:03 GMT</pubDate></item><item><title><![CDATA[Reply to ALSA output error (snd\_pcm\_open) Device or resource busy on Mon, 26 Aug 2013 23:21:17 GMT]]></title><description><![CDATA[<p>I'm stuck here... I only understand around 40% of what these devs are talking about... Installed jack and trying to route everything through jack... but than in pd I don't have &quot;jack&quot; under &quot;Media&quot;...</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/3</guid><dc:creator><![CDATA[jl2035]]></dc:creator><pubDate>Mon, 26 Aug 2013 23:21:17 GMT</pubDate></item><item><title><![CDATA[Reply to ALSA output error (snd\_pcm\_open) Device or resource busy on Tue, 27 Aug 2013 06:23:32 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>If you don't have &quot;jack&quot; under &quot;Media&quot;, it probably means that Pd was compiled without Jack support. With &quot;PureData 0.43.4&quot;, do you mean vanilla Pd? I'm using Pd-extended 0.44.0 from the nightly builds, and it does have Jack support. Vanilla Pd (0.45.0 is the latest) can be compiled with Jack support too, I could find out how if you need it. Sorry that it all sounds so complicated. Linux audio is confusing. But if you get things working it seems more flexible than other OS.</p>
<p>Katja</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/4</guid><dc:creator><![CDATA[katjav]]></dc:creator><pubDate>Tue, 27 Aug 2013 06:23:32 GMT</pubDate></item><item><title><![CDATA[Reply to ALSA output error (snd\_pcm\_open) Device or resource busy on Tue, 27 Aug 2013 16:33:14 GMT]]></title><description><![CDATA[<p>No I'm also using pd-extended.. how do I build it with jack support?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/5</guid><dc:creator><![CDATA[jl2035]]></dc:creator><pubDate>Tue, 27 Aug 2013 16:33:14 GMT</pubDate></item><item><title><![CDATA[Reply to ALSA output error (snd\_pcm\_open) Device or resource busy on Tue, 27 Aug 2013 21:18:55 GMT]]></title><description><![CDATA[<p>I guess you didn't compile Pd-extended yourself (because I would expect you have 0.44 in that case)? Correct me if I'm wrong.</p>
<p>Pd-extended binary builds (from <a href="http://puredata.info" rel="nofollow">puredata.info</a> and the nightly builds) have Jack support by default, to my knowledge. If you have a binary build installed and it doesn't show 'jack' in the media menu, something else may be wrong, which I cannot understand right away.</p>
<p>What do you use, self-built or precompiled binary? (If it's the binary it makes no sense to compile your own, too much work for probably no improvement).</p>
<p>Katja</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/6</guid><dc:creator><![CDATA[katjav]]></dc:creator><pubDate>Tue, 27 Aug 2013 21:18:55 GMT</pubDate></item><item><title><![CDATA[Reply to ALSA output error (snd\_pcm\_open) Device or resource busy on Tue, 27 Aug 2013 22:10:26 GMT]]></title><description><![CDATA[<p>I spend one sleepless night a while ago installing all the dependencies. I can compile it with no problem. The reason for that is that ubuntu ppa didn't work that night.. today I see it's working...</p>
<p>So I installed it from ppa right now...</p>
<p>Great! Now I have jack in media... how do I set this up?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/7</guid><dc:creator><![CDATA[jl2035]]></dc:creator><pubDate>Tue, 27 Aug 2013 22:10:26 GMT</pubDate></item><item><title><![CDATA[Reply to ALSA output error (snd\_pcm\_open) Device or resource busy on Tue, 27 Aug 2013 22:53:55 GMT]]></title><description><![CDATA[<p>OK cool. Don't know if LMMS has Jack support but in that case it could be simple: first start Jack and then the 'clients' LMMS and Pd-extended. But it may not be simple if Pulseaudio is in the game too. What I have done, is to prevent Pulseaudio from autospawning so that I can turn it on or off at will (various ways to do this are described online). I installed pulseaudio-module-jack. Now, pulseaudio can be an autoconnected Jack client just like Pd and others. So first make sure that Pulseaudio, Pd or other ALSA clients are not running, and start jack via qjackctl. Then start Pd, and on command line, start pulseaudio. In the qjackctl connections graph Pd and pulseaudio should both appear automatically. That is, if you have jackd2 installed and not the older jackd1 (important). You can change the connections routings to your liking. Pulseaudio can thus be considered a submixer of Jack, mixing all the non-jackified applications. This is how I mix the video editor together with Pd, but I can also send the video editor's signal to Pd by changing the routing of Pulseaudio in Jack. Sometimes I accidentally try to start jack when there's already an ALSA client running (Pd in most cases), and this will confuse Jack. I get a D-BUS error, which won't go away till I manually kill the process jackdbus. This can be done from the task manager or with command htop.</p>
<p>The above doesn't sound very user-friendly, does it? And I did not get it working on Kubuntu. Soon as Pd is started, all other signal-streaming apps just freeze. It works fine on my Xubuntu though. So I'm eager to know how it works for you on Ubuntu.</p>
<p>Katja</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/8</guid><dc:creator><![CDATA[katjav]]></dc:creator><pubDate>Tue, 27 Aug 2013 22:53:55 GMT</pubDate></item><item><title><![CDATA[Reply to ALSA output error (snd\_pcm\_open) Device or resource busy on Wed, 28 Aug 2013 11:51:43 GMT]]></title><description><![CDATA[<p>ok. so this are the steps I have to make:</p>
<p>1. make sure that pulseaudio is not running (not sure how.. i guess &quot;pulseaudio -k&quot; kills it)<br />
2. start qjackctl<br />
3. click start<br />
4. start pd-extended<br />
5. start pulseaudio</p>
<p>Last step fails i think:</p>
<p>E: [pulseaudio] pid.c: Daemon already running.<br />
E: [pulseaudio] main.c: pa_pid_file_create() failed.</p>
<p>In qjackctl Connections under &quot;Audio&quot; pd_extended_0 and PulseAudio JACK Sink are added. But from here I'm lost. I'm actually giving up on lmms and trying out ardour. Will report the progress.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/9</guid><dc:creator><![CDATA[jl2035]]></dc:creator><pubDate>Wed, 28 Aug 2013 11:51:43 GMT</pubDate></item><item><title><![CDATA[Reply to ALSA output error (snd\_pcm\_open) Device or resource busy on Wed, 28 Aug 2013 16:18:30 GMT]]></title><description><![CDATA[<p>I actually got it working with ardour.</p>
<p>Steps:<br />
1. Start jack and ardour<br />
2. Create Session and add new track for pd<br />
3. Start pd with -jack option<br />
4. Select Jack under Media<br />
5. Go to qjackctl -&gt; Connections and connect pd outputs on the left with the ardour's &quot;pd&quot; entry on the right.<br />
6. This way I can record pd output in Ardour. Which is actually what I need.</p>
<p>Thanks for help and your patience with me... you were awesome!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/10</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/10</guid><dc:creator><![CDATA[jl2035]]></dc:creator><pubDate>Wed, 28 Aug 2013 16:18:30 GMT</pubDate></item><item><title><![CDATA[Reply to ALSA output error (snd\_pcm\_open) Device or resource busy on Wed, 28 Aug 2013 21:34:53 GMT]]></title><description><![CDATA[<blockquote>
<p>1. make sure that pulseaudio is not running (not sure how.. i guess &quot;pulseaudio -k&quot; kills it)</p>
</blockquote>
<p>It takes just one more step to include Pulseaudio in the game too. Pulseaudio can be killed, yes, but it autospawns within one second or so. Therefore it is possibly muted by command pasuspender, issued by one of the other apps. You need to prevent autospawning of Pulseaudio so you can control it's start and stop moment, which matters for any Jack client. It is a matter of putting 'autospawn=no' in a Pulseaudio config file. It can be somewhere in /etc butI have it in ~/.pulse/client.conf (create if it's not yet there). The exact text is:</p>
<p>autospawn=no<br />
daemon-binary=/bin/true</p>
<p>I cant't remember where I found this info but it works. Pulseaudio isn't autostarted and I can start it at will by issuing command 'pulseaudio', and stop it with ctl+c. It's also possible to start with 'pulseaudio --start' and stop with 'pulseaudio --kill' if you want to return the command to do other things in that terminal window. But I find it useful to see possible error messages from Pulseaudio.</p>
<p>Pulseaudio messes up my alsamixer settings frequently!. I have an ALSA mixer in the panel, it's called xfce4-mixer. When Pulseaudio is started, I get pavucontrol in the panel too so I have two mixers. Sometimes, Pulseaudio just disables xfce4-mixer's master channel, or it sets mic input to max so I get extreme distortion. That's why I dislike Pulseaudio, and I want it to start only when it's really indispensible (that is, when non-Jackified apps must be mixed with Jackified apps).</p>
<p>Katja</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/11</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/11</guid><dc:creator><![CDATA[katjav]]></dc:creator><pubDate>Wed, 28 Aug 2013 21:34:53 GMT</pubDate></item><item><title><![CDATA[Reply to ALSA output error (snd\_pcm\_open) Device or resource busy on Thu, 20 Apr 2017 08:57:46 GMT]]></title><description><![CDATA[<p>Sorry to necro this thread, but I finally found out how to run PureData under Pulseaudio (which otherwise results with &quot;ALSA output error (snd_pcm_open): Device or resource busy&quot;).</p>
<p>First of all, run:</p>
<pre><code>pd -alsa -listdev
</code></pre>
<p>PD will start, and in the message window you'll see:</p>
<pre><code>audio input devices:
1. HDA Intel PCH (hardware)
2. HDA Intel PCH (plug-in)
audio output devices:
1. HDA Intel PCH (hardware)
2. HDA Intel PCH (plug-in)
API number 1

no midi input devices found
no midi output devices found

</code></pre>
<p>... or something similar.</p>
<p>Now, let's add the <code>pulse</code> ALSA device, and run <code>-listdev</code> again:</p>
<pre><code>pd -alsa -alsaadd pulse -listdev
</code></pre>
<p>The output is now:</p>
<pre><code>audio input devices:
1. HDA Intel PCH (hardware)
2. HDA Intel PCH (plug-in)
3. pulse
audio output devices:
1. HDA Intel PCH (hardware)
2. HDA Intel PCH (plug-in)
3. pulse
API number 1

no midi input devices found
no midi output devices found
</code></pre>
<p>Notice, how from the original two ALSA devices, now we got three - where the third one is <code>pulse</code>!</p>
<p>Now, the only thing we want to do, is that at startup (so, via the command line), we set <code>pd</code> to run in ALSA mode, we add the <code>pulse</code> ALSA device, and then we choose the third (3) device (which is to say, <code>pulse</code>) as the audio output device - and the command line argument for that in <code>pd</code> is <code>-audiooutdev</code>:</p>
<pre><code>pd -alsa -alsaadd pulse -audiooutdev 3 ~/Desktop/mypatch.pd
</code></pre>
<p>Yup, now when you enable DSP, the patch <code>mypatch.pd</code> should play through Pulseaudio, which means it will play (and mix) with other applications that may be playing sound at the time! You can confirm that the correct output device has been selected from the command line, if you open Media/Audio Settings... once <code>pd</code> starts:</p>
<p><img src="/uploads/files/1492678499903-screenshot-audio-settings.png" alt="Screenshot-Audio Settings.png" class="img-responsive img-markdown" /></p>
<p>As the screenshot shows, now &quot;Output device 1&quot; is set to &quot;pulse&quot;, which is what we needed.</p>
<p>Hope this helps someone!</p>
<p>EDIT: I had also done changes to <code>/etc/pulse/default.pa</code> as per <a href="https://wiki.archlinux.org/index.php/PulseAudio#ALSA.2Fdmix_without_grabbing_hardware_device" rel="nofollow">https://wiki.archlinux.org/index.php/PulseAudio#ALSA.2Fdmix_without_grabbing_hardware_device</a> beforehand, not sure whether that makes a difference or not (in any case, trying to add <code>dmix</code> as a PD device and playing through it, doesn't work on my Ubuntu 14.04)</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/12</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/12</guid><dc:creator><![CDATA[sdaau_ml]]></dc:creator><pubDate>Thu, 20 Apr 2017 08:57:46 GMT</pubDate></item><item><title><![CDATA[Reply to ALSA output error (snd\_pcm\_open) Device or resource busy on Sun, 12 Jan 2025 12:34:35 GMT]]></title><description><![CDATA[<p>i tried this but it outputs &quot;tried but couldn't sync A/D/A&quot;</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/13</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/7655/alsa-output-error-snd-_pcm-_open-device-or-resource-busy/13</guid><dc:creator><![CDATA[Pepe_mv98]]></dc:creator><pubDate>Sun, 12 Jan 2025 12:34:35 GMT</pubDate></item></channel></rss>