<div dir="ltr">I recommend you that install the new chuck 1.3.3.0 beta 3 version. It included support to pulseaudio.<div><span class=""><br></span></div><div><span class="">ChucK</span> source (version 1.3.3.0-beta-3):</div>

<div><a href="http://chuck.stanford.edu/release/files/beta/chuck-1.3.3.0-beta-3.tgz" target="_blank">http://<span class="">chuck</span>.stanford.edu/release/files/beta/<span class="">chuck</span>-1.3.3.0-beta-3.tgz</a><div>

<div dir="ltr"><br></div></div><div>Chuck branch (of trunk)</div><div dir="ltr"><a href="https://github.com/spencersalazar/chuck/tree/master/src" target="_blank" style="font-family:arial,sans-serif;font-size:12.800000190734863px">https://github.com/spencersalazar/<span class="">chuck</span>/tree/master/src</a><br>

</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div>Chuck Official (trunk)</div><div><a href="https://chuck-dev.stanford.edu/svn/chuck/trunk@431" target="_blank" style="font-family:arial,sans-serif;font-size:12.800000190734863px">https://<span class="">chuck</span>-dev.stanford.edu/svn/<span class="">chuck</span>/trunk@431</a><br>

</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/20  <span dir="ltr"><<a href="mailto:monon@att.net" target="_blank">monon@att.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif">Sorry to take so long to reply.  Pulseaudio was not installed on my system, but I installed it to try the code change mentioned below.  It did not work for me. I also installed jackd but again could not use another audio source concurrently with ChucK.  I did find that all works as I would like with Windows, but I am resistant to using Windows instead of Linux. Might have to swallow hard and use Windows to get through this course.  Thank you for all the help.<br>

<div><span><br></span></div><div><br></div>  <div style="font-family:times new roman,new york,times,serif;font-size:12pt"> <div style="font-family:times new roman,new york,times,serif;font-size:12pt"> <div dir="ltr"> <hr size="1">

  <font face="Arial"> <b><span style="font-weight:bold">From:</span></b> Harald
 <<a href="mailto:hg42@gmx.net" target="_blank">hg42@gmx.net</a>><br> <b><span style="font-weight:bold">To:</span></b> ChucK Users Mailing List <<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a>> <br>

 <b><span style="font-weight:bold">Sent:</span></b> Wednesday, November 6, 2013 4:12 AM<br> <b><span style="font-weight:bold">Subject:</span></b> Re: [chuck-users] Problem with multiple audion sources<br> </font> </div><div>

<div class="h5"> <div><br>
<div><div dir="ltr"><div><div><div>pulseaudio should usually work out of the box because most linux desktop distributions have this installed and configured, so it should be nice for beginners.<br><br>But musicians etc. / linux music distributions usually use jackd.<br>



</div><br></div><div>Apart from that alsa allows to create virtual devices to be routed through pulse or jack for those who know how to do it.<br>So alsa would be a good choice for all, but unfortunately desktop distributions don't come with alsa on top of pulse (from what I remember).<br>



<br></div>So there should be a choice between all these systems, probably with default to pulse and a BIG comment at a prominent place saying latency etc. may be bad and using jackd would be better. Users who can install jackd should also be able to choose a sound device in chuck.<br>



</div><br>General rule: choose a good default for beginners and allow advanced configuration for experts.<br></div><div><br><br><div>On Tue, Nov 5, 2013 at 11:51 PM, Morgan <span dir="ltr"><<a rel="nofollow" href="mailto:morganiser@gmail.com" target="_blank">morganiser@gmail.com</a>></span> wrote:<br>



<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My understanding is that chuck and or miniaudicle tries to 'own' your<br>
soundcard... it doesn't like to share.... but these instructions tell<br>
it to route through the mixer software<br>
<br>
I had similar issues (on Mint KDE which i believe has alot in common<br>
with KUbunutu), until I found and followed these directions for<br>
editing the audio config before compiling  (from<br>
<a rel="nofollow" href="https://class.coursera.org/chuck101-001/forum/thread?thread_id=130" target="_blank">https://class.coursera.org/chuck101-001/forum/thread?thread_id=130</a> )<br>
-<br>
<br>
<br>
<br>
"We need to edit one of the files to allow audio mixing through<br>
PulseAudio, so that playing ChucK will not block other audio sources<br>
such as the sound in the course videos.<br>
<br>
Use a text-editor (preferably one that shows line-numbers) to open the file:<br>
<br>
kate RtAudio/RtAudio.cpp<br>
<br>
Find line 5660:<br>
<br>
sprintf( name, "hw:%d,%d", card, subdevice );<br>
<br>
Revise this to read:<br>
<br>
//sprintf( name, "hw:%d,%d", card, subdevice );  // commented out<br>
sprintf( name, "pulse" );<br>
<br>
Find line 5699:<br>
<br>
int openMode = SND_PCM_ASYNC;<br>
<br>
Revise this to read:<br>
<br>
int openMode = SND_PCM_ASYNC;<br>
printf( "pcm name %s\n", name );  // line inserted<br>
<br>
Save the file and close Kate (or whatever text-editor you used)."<br>
<br>
<br>
THEN compile etc<br>
<br>
I believe these directions should either be part of the linux readme<br>
or better still be scripted into the source... ubuntu/mint being the<br>
most popular distros thse days.<br>
<br>
Morgan<br>
<div><div><br>
<br>
On 5 November 2013 15:49,  <<a rel="nofollow" href="mailto:monon@att.net" target="_blank">monon@att.net</a>> wrote:<br>
> I am a new chuck user and have just installed linux-alsa from source.  All<br>
> works well as long as there is no other audio source active. If there is<br>
> another active audio source active I get this message when, for example, I<br>
> type in chuck --loop:<br>
><br>
> [chuck]: RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:0,0),<br>
> Device or resource busy.<br>
><br>
> This seems to be a chuck issue as I can run multiple audio sources as long<br>
> as one of them is not chuck. My concern is that I started a coursera course<br>
> on chuck and would like to use chuck concurrently with the course.<br>
><br>
> My operating system is Kubuntu Linux 12.04.<br>
><br>
> Does anyone have any ideas?<br>
><br>
> Thank you,<br>
> Monon<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> chuck-users mailing list<br>
> <a rel="nofollow" href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br>
> <a rel="nofollow" href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
><br>
_______________________________________________<br>
chuck-users mailing list<br>
<a rel="nofollow" href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br>
<a rel="nofollow" href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</blockquote></div><br></div>
</div><br>_______________________________________________<br>chuck-users mailing list<br><a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br><a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>

<br><br></div> </div></div></div> </div>  </div></div><br>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Fernando Alonso Martín<br><a href="mailto:Lualobus@gmail.com" target="_blank">Lualobus@gmail.com</a><br><div><a href="http://www.roboticNaturalInteraction.com/famartin.html" target="_blank">http://roboticnaturalinteraction.com</a></div>

<div><br></div>
</div>