[alsa-devel] Getting the actual HW sample rate
Raymond Toy
rtoy at google.com
Mon Sep 12 22:59:33 CEST 2011
On Mon, Sep 12, 2011 at 1:29 PM, Clemens Ladisch <clemens at ladisch.de> wrote:
> Raymond Toy wrote:
> > On Thu, Sep 8, 2011 at 1:10 AM, Clemens Ladisch <clemens at ladisch.de
> > <mailto:clemens at ladisch.de>> wrote:
> >
> > Add the SND_PCM_NO_AUTO_RESAMPLE flag when calling snd_pcm_open, or
> use
> > snd_pcm_hw_params_set_rate_resample.
> >
> > Some further experimentation with this has confused me. I changed the
> > sample code to call snd_pcm_hw_params_set_rate_resample with resample =
> 0.
> >
> > When I run the code without an .asoundrc (defaulting to pulse audio, I
> > think), I get sample rrates : 1-192000.
>
> The pulse plugin does not support this flag.
>
Well, that explains it of course. Thanks for your help!
Ray
More information about the Alsa-devel
mailing list