Hello,
I posted this question last year about how to
use only sample rates supported directly by the hardware...
Jaroslav Kysela wrote:
>> Or is there some resampling going on in
>> the alsa drivers?
>>
>
> The automatic resampling is available in our library. If you want to see
> all hardware constrains, use 'hw:*' devices.
Sorry, I still can't figure out how to do it. I try the following
command and now I get a "Sample format non available" error,
no matter what format I use:
mir@orbit:~> arecord -r 44100 -f S8 -D hw:0,0 -t raw hello.raw
Recording raw data 'hello.raw' : Signed 8 bit, Rate 44100 Hz, Mono
arecord: set_params:739: Sample format non available
I'm not sure if I understand how to choose the device
correctly, but I couldn't find any documentation on that,
either (other than probably in the API).
Thanks,
Mirko
BTW, the hw{} part of arecord's output is:
mir@orbit:~> arecord -L
PCM list:
hw {
@args.0 CARD
@args.1 DEV
@args.2 SUBDEV
@args.CARD {
type string
default {
@func getenv
vars {
0 ALSA_PCM_CARD
1 ALSA_CARD
}
default {
@func refer
name 'defaults.pcm.card'
}
}
}
@args.DEV {
type integer
default {
@func igetenv
vars {
0 ALSA_PCM_DEVICE
}
default {
@func refer
name 'defaults.pcm.device'
}
}
}
@args.SUBDEV {
type integer
default {
@func refer
name 'defaults.pcm.subdevice'
}
}
type hw
card $CARD
device $DEV
subdevice $SUBDEV
}
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user