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