mm0fmf,
> The error return value from most of those sound functions is not being
> checked.
:-) That doesn't mean I, in the course of trying to find the problem, didn't
do that myself. None of the functions returned a negative result.
> Does the hardware you are using support 8000Hz sample rate?
I have no idea. The "snd_pcm_hw_params_set_rate_near()" function seems
to think so though (no negative result), "val" is unchanged. My guess
therefore is that it does.
> Does aplay and arecord work with the sample rates you want to use?
I tested aplay, and it it does. Even down to 4000.
Just one question: Do you have a Raspberry Pi (3b+), and if so could you
PLEASE test if you can reproduce my problem.
I need to know if its just a (lack of) code problem, or if should replace my
currently used software (ALSA, OS, anything else ?)
Regards,
Rudy Wieser
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|