Thanks! I was able to figure out, using "arecord -f cd -t raw -vv /dev/null", that I needed to set both the capture level and the audio source to capture (using the space bar in alsamixer) in order to get the level to register. Success! (an exerpt is shown below)

When I do "arecord -f cd -d 10 test.wav", it appears to record. When I do "aplay -t wav test.wav", I get: "Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo" no sound comes out. I know I'm very close to having this working right. Any idea what's wrong?

[EMAIL PROTECTED] root]# arecord -f cd -t raw -vv /dev/null
Recording raw data '/dev/null' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Plug PCM: Rate conversion PCM (48000, sformat=S16_LE)
Its setup is:
stream : CAPTURE
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 44100
exact rate : 44100 (44100/1)
msbits : 16
buffer_size : 15052
period_size : 3763
period_time : 85333
tick_time : 10000
tstamp_mode : NONE
period_step : 1
sleep_min : 0
avail_min : 3763
xfer_align : 3763
start_threshold : 1
stop_threshold : 15052
silence_threshold: 0
silence_size : 0
boundary : 986447872
Slave: Hardware PCM card 0 'VIA 8235' device 0 subdevice 0


Its setup is:
stream       : CAPTURE
access       : MMAP_INTERLEAVED
format       : S16_LE
subformat    : STD
channels     : 2
rate         : 48000
exact rate   : 48000 (48000/1)
msbits       : 16
buffer_size  : 16384
period_size  : 4096
period_time  : 85333
tick_time    : 10000
tstamp_mode  : NONE
period_step  : 1
sleep_min    : 0
avail_min    : 4096
xfer_align   : 4096
start_threshold  : 1
stop_threshold   : 16384
silence_threshold: 0
silence_size : 0
boundary     : 1073741824
Max peak (7526 samples): 10503 (0x2907) #######              32%
Max peak (7526 samples): 09970 (0x26f2) #######              30%
Max peak (7526 samples): 10146 (0x27a2) #######              31%



Clemens Ladisch wrote:

Chad Paavola wrote:


Can anyone tell me a quick way to test capture with alsa?



"arecord -f cd -d 10 test.wav" will record 10 seconds. "arecord -f cd -t raw -vv /dev/null" will show the input level. If you want to use 48 kHz instead of 44.1 kHz, use "-f dat".


HTH Clemens










-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise Linux in the Boardroom; in the Front Office; & in the Server Room http://www.enterpriselinuxforum.com
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to