| Author |
Message |
Acoustic Interloper

Joined: Jul 07, 2007 Posts: 1327 Location: Berks County, PA
Audio files: 19
|
Posted: Wed Feb 03, 2010 10:27 am Post subject:
ChucK on Linux cannot find the audio ports Subject description: How to connect ChucK with the installed drivers. |
 |
|
One of my students is trying to use the current ChucK on Ubuntu Linux for the first time. I have used ChucK on Windows and OSX, but not on Linux.
Here is his email describing the problem:
| Quote: |
When we did the probe we got what is listed below. You mentioned you thought it was the device driver and that possibly being linux the device driver for the audio output was not correct. We then tested the sound and sound was able to work in multiple devices listed.
chuck --probe
[chuck]: (via rtaudio): no devices found for compiled audio APIs!
[chuck]:
[chuck]: ------( chuck -- 1 MIDI inputs )------
[chuck]: [0] : "Midi Through Port-0"
[chuck]:
[chuck]: ------( chuck -- 1 MIDI outputs )-----
[chuck]: [0] : "Midi Through Port-0"
[chuck]:
Also, I have included the Linux OS specification that you asked me to have handy.
uname -a
Linux decimus-laptop 2.6.27-7-generic #1 SMP Fri Oct 24 06:42:44 UTC 2008 i686 GNU/Linux
|
I don't have his list of installed audio drivers from the Linux sound utility, but we do know that it is possible to capture microphone input and drive the speakers in the laptop.
Anybody have a recommendation for the next step? He is conversant with Linux, although perhaps not with updating drivers. I am not.
Thanks. _________________ "I'm sorry, we don't take calls on the phone." (!!!)
Linda Parson, 2010 |
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7682 Location: The Hague, NL
G2 patch files: 3
|
Posted: Wed Feb 03, 2010 4:38 pm Post subject:
|
 |
|
Ok. Let's go over this;
There are basically three types of Linux audio driver;
*OSS (slow and limited, only used by stuff like Adobe Flash and Skype, comparable to Windows media drivers)
*Alsa (Decent, more or less like ASIO)
*Jack (very low latency, routable from program to program, typically only supported by media/art programs)
As a rule of thumb I'd pick Alsa since OSS doesn't really have any advantages aside from compatibility with things from ages ago and Jack only really starts to shine when you want/need the routing stuff. This is, of course, a confusing situation. For reasons unknown, instead of simply dropping OSS support, the solution is deemed to be adding layers that can support multiple protocols and mix soundsources between them. This is where -typically- Pulse Audio comes in; I don't know why as I know 0 people that actually like it and it does weird things like only allowing a single OSS client which then gets to muck up the rest.
Anyway, the first step would be wondering what version of ChucK you compiled; when compiling you need to pick one of these three.
Please run this;
The result for me is;
| Code: | chuck version: 1.2.1.3 (dracula)
exe target: linux (alsa)
http://chuck.cs.princeton.edu/
|
...which tells us that I picked the Alsa version. Right now I suspect you somehow ended up with Jack without getting the needed libraries, the server and a controller/patchbay for the server but let's see what you get (IMHO the current situation should be impossible to get into). Please also make sure when using --probe to not run something like Skype or a browser running Flash at the same time because -as mentioned- those will muck up PulseAudio.
Also; if somebody could please get OSS depreciated in general and get the Pulse Audio people judged for crimes against humanity? _________________ Kassen |
|
|
Back to top
|
|
 |
Acoustic Interloper

Joined: Jul 07, 2007 Posts: 1327 Location: Berks County, PA
Audio files: 19
|
Posted: Wed Feb 03, 2010 7:30 pm Post subject:
|
 |
|
Thank you, Kassen. It's nice chatting with you again.
I'll get together with my student and let you know how it goes. Your response promises to be very helpful.
Take care.
Dale _________________ "I'm sorry, we don't take calls on the phone." (!!!)
Linda Parson, 2010 |
|
|
Back to top
|
|
 |
DrumAliens

Joined: Jul 10, 2008 Posts: 26 Location: UK
Audio files: 1
|
Posted: Thu Feb 04, 2010 9:22 am Post subject:
|
 |
|
Can't check right now Acoustic Interloper but I believe I get a similar message if I try and run ChucK with out first running Jack.
As Kassen says try chuck --version and that should shed some light on the matter |
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7682 Location: The Hague, NL
G2 patch files: 3
|
Posted: Fri Feb 05, 2010 11:38 am Post subject:
|
 |
|
Yeah, that's likely it. With Jack you could have met all of the dependencies but then when the Jack server isn't running you still won't get a sound.
This stuff is a mess. Jack is absolutely amazing and can compete quite successfully with what other OS's have to offer for audio routing but the mainstream desktop releases focus on stuff like Flash and Skype, making things a bit harder for people who want to deal with media stuff.
OSS is the oldest of the three and kept everywhere for compatibility... which also means it's the safe bet for companies like Adobe, which in turn prevents it from getting moved out like it should.
To make matters worse; there are ways of addressing the soundcard (like the RTAudio library) that can deal with multiple protocols from a single program. ChucK uses that library but our version is out of date. This also affects Windows with the whole DX v.s. ASIO mess.
All of this is extremely annoying and often very confusing. Might be the one case where I envy the Apple policy of forcing a single option on everyone, but then again Apple has been known to change things without first telling developers that they will, which of course leads to it's own set of issues. _________________ Kassen |
|
|
Back to top
|
|
 |
dewdrop_world

Joined: Aug 28, 2006 Posts: 857 Location: Guangzhou, China
Audio files: 4
|
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7682 Location: The Hague, NL
G2 patch files: 3
|
Posted: Mon Feb 08, 2010 7:56 am Post subject:
|
 |
|
Seconded. Pure:Dyne is the fashionable flavour of the season with good reason. Nice people there too. _________________ Kassen |
|
|
Back to top
|
|
 |
Acoustic Interloper

Joined: Jul 07, 2007 Posts: 1327 Location: Berks County, PA
Audio files: 19
|
Posted: Mon Feb 08, 2010 1:22 pm Post subject:
|
 |
|
I have not heard from my grad student lately, but thanks for the PureDyne recommendation. It sounds like a good recommendation if I get to using Linux for audio. _________________ "I'm sorry, we don't take calls on the phone." (!!!)
Linda Parson, 2010 |
|
|
Back to top
|
|
 |
Acoustic Interloper

Joined: Jul 07, 2007 Posts: 1327 Location: Berks County, PA
Audio files: 19
|
Posted: Tue Feb 09, 2010 5:54 pm Post subject:
|
 |
|
| Acoustic Interloper wrote: | | I have not heard from my grad student lately, but thanks for the PureDyne recommendation. It sounds like a good recommendation if I get to using Linux for audio. |
Ryan (my student) and I tried using the package manager to install Jack, which seemed to work, but ChucK (for Jack) installed via the package manager still could not find it.
So we built ChucK from source for ALSA with some small hurdles in the not-entirely-automated process, and we seem to be rolling along. Thanks for your help! _________________ "I'm sorry, we don't take calls on the phone." (!!!)
Linda Parson, 2010 |
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7682 Location: The Hague, NL
G2 patch files: 3
|
Posted: Sat Feb 13, 2010 10:01 am Post subject:
|
 |
|
| Acoustic Interloper wrote: |
Ryan (my student) and I tried using the package manager to install Jack, which seemed to work, but ChucK (for Jack) installed via the package manager still could not find it. |
Likely the issue was the the Jack server wasn't running. I think it's quite odd that this ChucK package wouldn't depend on Jack. That must be a mistake, I wonder who rolled that package.
| Quote: |
So we built ChucK from source for ALSA with some small hurdles in the not-entirely-automated process, and we seem to be rolling along. Thanks for your help! |
End good all good! What hurdles did you get? I found ChucK a fairly easy compile but it's true that you do need to gain a understanding of libraries to link against. That's just a fact of life when compiling for Linux. On the other hand I do like how Linux doesn't simply include any and all libraries you might possibly need in the future like some OS's that then become unreasonably large. _________________ Kassen |
|
|
Back to top
|
|
 |
Acoustic Interloper

Joined: Jul 07, 2007 Posts: 1327 Location: Berks County, PA
Audio files: 19
|
Posted: Sat Feb 13, 2010 1:05 pm Post subject:
|
 |
|
| Kassen wrote: |
What hurdles did you get? |
Actually the only one after we got all dependent libraries installed, was one of the libraries on the final link line, I think it was:
-lasound
for some reason g++ complained that it could not find it, but libasound.so was in /usr/lib along with all the other libs on that line. I manually ran the g++ link line and changed that entry to
libasound.so
which pulls in the entire library, but that worked OK. So we left it at that. I don't understand why g++ had a problem with -lasound.
Thanks again. _________________ "I'm sorry, we don't take calls on the phone." (!!!)
Linda Parson, 2010 |
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7682 Location: The Hague, NL
G2 patch files: 3
|
Posted: Sun Feb 14, 2010 8:30 am Post subject:
|
 |
|
Quite odd. I can't explain that and I compiled ChucK on Ubuntu quite a few times without issues beyond my own initial inexperience.
I'll keep a eye out for more issues like this, maybe there is a structural problem hidden somewhere. _________________ Kassen |
|
|
Back to top
|
|
 |
|