View Single Post
Posts: 72 | Thanked: 184 times | Joined on Apr 2011 @ Germany
#1006
Ok, got replay running. Little howto (for kp49):

Packages installed: alsa-utils,mplayer (all on maemo, not Easy Debian). Tested with Yamaha MW10c USB mixer.

first, connect device (standard usb audio device), start h-e-n, enable fullspeed, Vbus boost on, enumerate. Then, start an x-term and load the kernel module (probably not necessary, seems to be loaded by default):

Code:
sudo modprobe snd-usb-audio
check if your new audio device has appeared:

Code:
cat /proc/asound/cards
cat /proc/asound/devices
playing music with mplayer:

Code:
mplayer FILE.mp3 -ao alsa:device=hw=1.0
Plays perfectly, but CPU load is higher (40-50% compared to 15% when playing with mplayer through the internal DAC)

recording with arecord 44.1khz 16-bit stereo wav:

Code:
arecord --device=hw:default,DEV=0 -f cd -t wav FILE.wav
(default is the name on my n900 for the usb device, check /proc/asound/cards if it's the same for you)
I got sometimes some overruns with arecord, maybe one can change the buffer size or something similar. Hope to get a workaround... apart from that it's nearly perfect.

Next step would be to reroute the standard output to the USB if someone's interested - should be possible with pulse-audio somehow, but I have no idea about that

Oh - and anyone's got an idea for a lightweight multi-track recorder?
 

The Following 5 Users Say Thank You to Oblomow For This Useful Post: