|
From: Chris B. <ch...@cn...> - 2010-05-24 13:16:22
|
You've already solved the hardest part of this: Finding the correct device name. :-) Just add a "-t alsa" right before the alsa device name in your command below. Since no file extension, SoX needs to be given a hint at what your input is. Chris On Mon, May 24, 2010 at 6:38 AM, <pj...@pj...> wrote: > I'm really sorry, it's another question :-( > > I've just bought a Zoom G1u guitar-effects unit, which has jack > in and out sockets, and a USB connector. Plugging this into > my debian squeeze gives me an extra /dev/dsp4 and /dev/snd/pcmC4D0c > and /dev/snd/pcmC4D0p so that looks fine. Also lsusb can see it, > and alsamixer can see it: F2 (System information) /proc/asound/pcm : > 00-00: ALC888 Analog : ALC888 Analog : playback 1 : capture 1 > 00-01: ALC888 Digital : ALC888 Digital : playback 1 : capture 1 > 00-02: ALC888 Analog : ALC888 Analog : capture 1 > 04-00: USB Audio : USB Audio : playback 1 : capture 1 <=== that's it > > How do I set sox's input device to hw:4,0 without changing the > default output-device ? > > ~> AUDIODEV=hw:4,0 sox -r 44100 -c 2 -e s -d /tmp/gtr.wav > > records just fine :-) , but that's to a wav-file; > I want to go straight through in real-time. > > ~> sox -r 44100 -c 2 -e s hw:4,0 /tmp/gtr.wav > sox FAIL formats: can't open input file `hw:4,0': No such file or > directory > > How do I set sox's input device to hw:4,0 without changing the > default output-device ? > > Help gratefully received, Regards, Peter Billam > > http://www.pjb.com.au pj...@pj... (03) 6278 9410 > "Was der Meister nicht kann, vermöcht es der Knabe, hätt er > ihm immer gehorcht?" Siegfried to Mime, from Act 1 Scene 2 > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Sox-users mailing list > Sox...@li... > https://lists.sourceforge.net/lists/listinfo/sox-users > |