Yes, sorry for crashing this thread, i'm only using the internal output for now, no experience to share with an external soundcard.<br><br>Pierre.<br><br><div class="gmail_quote">2012/9/4 m.e.grimm <span dir="ltr"><<a href="mailto:megrimm@gmail.com" target="_blank">megrimm@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">thats the internal output right?<br>
im using a cheap/generic USB in/out. i think its another issue other<br>
than PD because the increased audio buf doesnt improve anything....<br>
<span class="HOEnZb"><font color="#888888"><br>
m<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Tue, Sep 4, 2012 at 9:41 AM, Pierre Massat <<a href="mailto:pimassat@gmail.com">pimassat@gmail.com</a>> wrote:<br>
> Just FYI, on my RPI running raspbian Pd doesn't need a delay to turn the<br>
> audio on, but does require a substantial buffer in order to work fine with<br>
> the analog output.<br>
><br>
> Pierre.<br>
><br>
> 2012/9/4 m.e.grimm <<a href="mailto:megrimm@gmail.com">megrimm@gmail.com</a>><br>
><br>
>> it ends up that i forgot to do the delay on the loadbang thing to turn<br>
>> audio on with -nogui flag.<br>
>><br>
>> works but doesnt sound so good... ill work on that one...<br>
>><br>
>> cheers<br>
>> m<br>
>><br>
>> On Sun, Sep 2, 2012 at 2:01 PM, Miller Puckette <<a href="mailto:msp@ucsd.edu">msp@ucsd.edu</a>> wrote:<br>
>> > Well, first off, do you know about X11 forwarding in ssh? It's easy<br>
>> > to run GUI programs over ssh and have all teh windows pop up on<br>
>> > the calling machine. Just make sure /etc/ssh/sshd_config on the<br>
>> > Pi has the line "X11Forwarding yes" (and restart sshd if necessary) and<br>
>> > run "ssh -X" from the calling machine (-X might be on by default anyway;<br>
>> > also you can change the default in /etc/ssh/ssh_configu). Type "pd" on<br>
>> > the remote shell and bingo, the Pd window pops up on the calling one.<br>
>> ><br>
>> > Sometimes there's an extra step to get permission to use the audio<br>
>> > device on<br>
>> > the remote machine if you aren't roo on it -- this can be done by adding<br>
>> > your<br>
>> > user account to group 'audio'.<br>
>> ><br>
>> > cheers<br>
>> > Miller<br>
>> ><br>
>> > On Sun, Sep 02, 2012 at 09:52:50AM -0400, m.e.grimm wrote:<br>
>> >> hey miller.<br>
>> >><br>
>> >> yeah on raspbian i got rid of the "invalid card" nag. no way to test<br>
>> >> stuff at moment via gui. all done via ssh on headless rpi.<br>
>> >><br>
>> >> my guess is it has nothing to do with pd. usb cards have to be set to<br>
>> >> default.<br>
>> >><br>
>> >> $ nano /etc/asound.conf<br>
>> >><br>
>> >> pcm.!default {<br>
>> >> type hw<br>
>> >> card 0<br>
>> >> }<br>
>> >><br>
>> >> ctl.!default {<br>
>> >> type hw<br>
>> >> card 0<br>
>> >> }<br>
>> >><br>
>> >> $nano /etc/modprobe.d/alsa-base.conf<br>
>> >> change line:<br>
>> >> # Keep snd-usb-audio from beeing loaded as first soundcard<br>
>> >> options snd-usb-audio index=-2<br>
>> >><br>
>> >> to:<br>
>> >> # Keep snd-usb-audio from beeing loaded as first soundcard<br>
>> >> options snd-usb-audio index=0<br>
>> >><br>
>> >><br>
>> >> m<br>
>> >><br>
>> >> On Sat, Sep 1, 2012 at 7:13 PM, Miller Puckette <<a href="mailto:msp@ucsd.edu">msp@ucsd.edu</a>> wrote:<br>
>> >> > Hmm - no matter what I try over here I can't get Pd to complain<br>
>> >> > 'Invalid value for card' - a lame guess would be that either the<br>
>> >> > input or output only does mono and Pd is asking for 2 channels or<br>
>> >> > something like that.<br>
>> >> ><br>
>> >> > I suppose all works fine when you open Pd with a GUI, right?<br>
>> >> ><br>
>> >> > Thanks for your patience...<br>
>> >> > M<br>
>> >> ><br>
>> >> > On Sat, Sep 01, 2012 at 06:33:37PM -0400, m.e.grimm wrote:<br>
>> >> >> hey miller,<br>
>> >> >><br>
>> >> >> > You can type "pd -nogui -audiodev 1" (1 is the default anyway) to<br>
>> >> >> > get<br>
>> >> >><br>
>> >> >> yeah that's what i meant. "pd -nogui -audiodev 1", "pd -nogui<br>
>> >> >> -audiodev 2", etc etc.... All giving me the same error.<br>
>> >> >><br>
>> >> >> ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card<br>
>> >> >> snd_pcm_open (input): No such file or directory<br>
>> >> >> ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card<br>
>> >> >> snd_pcm_open (output): No such file or directory<br>
>> >> >><br>
>> >> >><br>
>> >> >><br>
>> >> >> m<br>
>> >> >><br>
>> >> >><br>
>> >> >> On Sat, Sep 1, 2012 at 2:17 PM, Miller Puckette <<a href="mailto:msp@ucsd.edu">msp@ucsd.edu</a>><br>
>> >> >> wrote:<br>
>> >> >> > You can type "pd -nogui -audiodev 1" (1 is the default anyway) to<br>
>> >> >> > get<br>
>> >> >> > the "hardware" device or "pd -nogui -audiodev 2" to get the<br>
>> >> >> > "plughw"<br>
>> >> >> > device. The "device numbers" in the Pd argument agree with the<br>
>> >> >> > numbering<br>
>> >> >> > that "-listdev" prints out.<br>
>> >> >> ><br>
>> >> >> > cheers<br>
>> >> >> > Miller<br>
>> >> >> ><br>
>> >> >> > On Sat, Sep 01, 2012 at 12:11:42PM -0400, m.e.grimm wrote:<br>
>> >> >> >> My audio card is listed as:<br>
>> >> >> >><br>
>> >> >> >> pi@raspberrypi ~ $ lsusb<br>
>> >> >> >> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br>
>> >> >> >> Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.<br>
>> >> >> >> Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.<br>
>> >> >> >> Bus 001 Device 004: ID 7392:7811 Edimax Technology Co., Ltd<br>
>> >> >> >> EW-7811Un<br>
>> >> >> >> 802.11n Wireless Adapter [Realtek RTL8188CUS]<br>
>> >> >> >> Bus 001 Device 008: ID 0d8c:000e C-Media Electronics, Inc. Audio<br>
>> >> >> >> Adapter (Planet UP-100, Genius G-Talk)<br>
>> >> >> >><br>
>> >> >> >> pi@raspberrypi ~ $ aplay -l<br>
>> >> >> >> **** List of PLAYBACK Hardware Devices ****<br>
>> >> >> >> card 1: Device [Generic USB Audio Device], device 0: USB Audio<br>
>> >> >> >> [USB Audio]<br>
>> >> >> >> Subdevices: 1/1<br>
>> >> >> >> Subdevice #0: subdevice #0<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> When i do:<br>
>> >> >> >><br>
>> >> >> >> pi@raspberrypi ~ $speaker-test -Dplughw:1,0 -t sine -f 800<br>
>> >> >> >><br>
>> >> >> >> I get a test tone from the output. Then I do:<br>
>> >> >> >><br>
>> >> >> >> pi@raspberrypi ~ $ sudo pd -nogui -listdev<br>
>> >> >> >> audio input devices:<br>
>> >> >> >> 1. Generic USB Audio Device (hardware)<br>
>> >> >> >> 2. Generic USB Audio Device (plug-in)<br>
>> >> >> >> audio output devices:<br>
>> >> >> >> 1. Generic USB Audio Device (hardware)<br>
>> >> >> >> 2. Generic USB Audio Device (plug-in)<br>
>> >> >> >> API number 1<br>
>> >> >> >><br>
>> >> >> >> pi@raspberrypi ~ $ pd -nogui -alsa -nomidi -audiodev 1,1<br>
>> >> >> >> ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card<br>
>> >> >> >> snd_pcm_open (input): No such file or directory<br>
>> >> >> >> ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card<br>
>> >> >> >> snd_pcm_open (output): No such file or directory<br>
>> >> >> >><br>
>> >> >> >><br>
>> >> >> >> hmmmm... am i doing something silly wrong here? what am i missing<br>
>> >> >> >> with<br>
>> >> >> >> my flags that giving me "Invalid value for card"?<br>
>> >> >> >><br>
>> >> >> >> thanks!<br>
>> >> >> >> m<br>
>> >> >> >><br>
>> >> >> >> --<br>
>> >> >> >> ____________________<br>
>> >> >> >> m.e.grimm | m.f.a | ed.m.<br>
>> >> >> >> <a href="mailto:megrimm@gmail.com">megrimm@gmail.com</a><br>
>> >> >> >> _________________________________<br>
>> >> >> >><br>
>> >> >> >> _______________________________________________<br>
>> >> >> >> <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
>> >> >> >> UNSUBSCRIBE and account-management -><br>
>> >> >> >> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
>> >> >><br>
>> >> >><br>
>> >> >><br>
>> >> >> --<br>
>> >> >> ____________________<br>
>> >> >> m.e.grimm | m.f.a | ed.m.<br>
>> >> >> <a href="mailto:megrimm@gmail.com">megrimm@gmail.com</a><br>
>> >> >> _________________________________<br>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> ____________________<br>
>> >> m.e.grimm | m.f.a | ed.m.<br>
>> >> <a href="mailto:megrimm@gmail.com">megrimm@gmail.com</a><br>
>> >> _________________________________<br>
>><br>
>><br>
>><br>
>> --<br>
>> ____________________<br>
>> m.e.grimm | m.f.a | ed.m.<br>
>> <a href="mailto:megrimm@gmail.com">megrimm@gmail.com</a><br>
>> _________________________________<br>
>><br>
>> _______________________________________________<br>
>> <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
>> UNSUBSCRIBE and account-management -><br>
>> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
____________________<br>
m.e.grimm | m.f.a | ed.m.<br>
<a href="mailto:megrimm@gmail.com">megrimm@gmail.com</a><br>
_________________________________<br>
</div></div></blockquote></div><br>