hi there,
I'm trying to get pd 0.39-2 to work with my audigy2 soundcard. I compiled pd with --enable-alsa and --enable-jack on gentoo (kernel 2.6.17r4). pd works in oss mode but fails with alsa unless i specify -noadc . I would really appreciate any hints on getting the card (including its inputs) going with alsa, since oss is pretty much deprecated these days ...
alsa itself seems to be okay: playing back media files with both xmms and mplayer works. cat /proc/asound/devices gives
0: [ 0] : control 1: : sequencer 4: [ 0- 0]: hardware dependent 6: [ 0- 2]: hardware dependent 8: [ 0- 0]: raw midi 9: [ 0- 1]: raw midi 10: [ 0- 2]: raw midi 11: [ 0- 3]: raw midi 16: [ 0- 0]: digital audio playback 18: [ 0- 2]: digital audio playback 19: [ 0- 3]: digital audio playback 20: [ 0- 4]: digital audio playback 24: [ 0- 0]: digital audio capture 25: [ 0- 1]: digital audio capture 26: [ 0- 2]: digital audio capture 28: [ 0- 4]: digital audio capture 33: : timer
so the devices are there.
pd started with -alsa -listdev spits out the following messages:
input devices:
output devices:
API number 1
input devices:
output devices:
audio I/O stuck... closing audio
selecting either the hardware or the plugin-devices doesn't make a difference.
many thanks in advance, thoralf.
___________________________________________________________ All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine http://uk.docs.yahoo.com/nowyoucan.html
Thoralf Schulze wrote:
hi there,
I'm trying to get pd 0.39-2 to work with my audigy2 soundcard. I compiled pd with --enable-alsa and --enable-jack on gentoo (kernel 2.6.17r4). pd works in oss mode but fails with alsa unless i specify -noadc .
hmm; is this _real_ OSS mode, or just the oss-compatibility layer from alsa?
I would really appreciate any hints on getting the card (including its inputs) going with alsa, since oss is pretty much deprecated these days ...
alsa itself seems to be okay: playing back media files with both xmms and mplayer works. cat
well, both xmms and mplayer work with kindof "-noadc".
having said that, i have currently no idea how to solve your problem.
hi there,
hmm; is this _real_ OSS mode, or just the oss-compatibility layer from alsa?
the latter. i disabled oss in the kernel configuration and also tried to disable the kernel usb audio and midi drivers (they are rumored to work in oss mode only and to cause a lot of issues), but doing so didn't help.
just did some quick testing with ubuntu 6.06 and pd 0.39-2 - pretty much the same thing. there seems to be no way of getting sound into pd via the audigy card ... one thing caught my attention: ubuntu (or gnome, respectively) comes with a volume control applet. if i select my crappy on-board sound card as active alsa device, there is a capture-tab in this applet that doesn't appear for the audigy. could it be that capturing audio is simply broken in alsa with this card? is there an easy way of testing if the line-in input of a soundcard actually works with alsa?
sorry for bugging you, i realise that i should probably turn to some linux audio mailing list with this issue ...
with kind regards, thoralf.
Inbox full of spam? Get leading spam protection and 1GB storage with All New Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html
Hallo, Thoralf Schulze hat gesagt: // Thoralf Schulze wrote:
just did some quick testing with ubuntu 6.06 and pd 0.39-2 - pretty much the same thing. there seems to be no way of getting sound into pd via the audigy card ... one thing caught my attention: ubuntu (or gnome, respectively) comes with a volume control applet. if i select my crappy on-board sound card as active alsa device, there is a capture-tab in this applet that doesn't appear for the audigy. could it be that capturing audio is simply broken in alsa with this card? is there an easy way of testing if the line-in input of a soundcard actually works with alsa?
First: Running pd -oss is not deprecated or anything. I mostly use "-oss" myself. So if it works, just stick with it.
To test, if ALSA works in general, you should use "aplay" and "arecord" first. Try "arecord -D default -f cd some.wav" to see if you can capture from the "default" device. If this works, try the "hw:X" device like: "arecord -D hw:1 -f cd some.wav". THis actually might fail, depending on your hardware (it will probably fail on RME cards for example).
The missing "capture" control for your Audigy may not be a bug: Many soundcards don't have a mixer so there's nothing to mix. Some cards have a mixer, but not for everything. It migh be, that the Audigy doesn't have an Input mixer.
If you run "alsamixer -c1" to select the second card ("-c1") to control, then alsamixer will show the mixer controls available on your card.
Frank Barknecht _ ______footils.org_ __goto10.org__
hi frank,
--- Frank Barknecht fbar@footils.org wrote:
thanks a million for your answer.
First: Running pd -oss is not deprecated or anything. I mostly use "-oss" myself. So if it works, just stick with it.
So I guess I'll stick with the oss emulation, I just got pd decently married to it. it still strikes me as weird that the oss emulation of alsa is capable of doing things that the underlying alsa doesn't seem to support.
while we're at it, another question regarding midi: you wrote a while ago (http://lists.puredata.info/pipermail/pd-list/2005-10/031793.html) that it is possible to get data from an usb midi controller into pd by using the /dev/midi* files. I actually do have a bunch of them:
vj@thoralf ~ $ ls /dev/midi* -al crw-rw---- 1 root audio 14, 2 31. Aug 15:23 /dev/midi crw-rw---- 1 root audio 35, 0 14. Feb 2006 /dev/midi0 crw-rw---- 1 root audio 14, 2 14. Feb 2006 /dev/midi00 crw-rw---- 1 root audio 14, 18 14. Feb 2006 /dev/midi01 crw-rw---- 1 root audio 14, 34 14. Feb 2006 /dev/midi02 crw-rw---- 1 root audio 14, 50 14. Feb 2006 /dev/midi03 crw-rw---- 1 root audio 14, 50 21. Aug 19:52 /dev/midi3
I understand that I need to load the snd-usb-audio module (pd -listdev without this module returns
input devices:
output devices:
, both are not working) to access the controller. with this module loaded, i get
input devices:
output devices:
, but none if these devices actually works. I tried various iterations of -mididev x , to no avail. am i missing another module? and how do i get alsa to load snd-usb-audio when it starts up? /etc/modules/autoload/kernel-2.6 doesn't seem to be right place, since it gets loaded before alsa starts and blocks sound in pd as a consequence.
once i have this up an working, i owe you a beer. and i'll have to stick notes with "don't you ever touch alsa config again!" all over the place.
thanks, thoralf.
Copy addresses and emails from any email account to Yahoo! Mail - quick, easy and free. http://uk.docs.yahoo.com/trueswitch2.html