[CM] snd-gtk-alsa "alsa_audio_open: could not set rate to exactly 44100, set to 3200 instead"

Sebastian Tennant sebyte@smolny.plus.com
Thu, 02 Feb 2006 00:29:02 +0000


Sebastian Tennant <sebyte@smolny.plus.com> wrote:
> I'm afraid a lot of what you are saying is over my head, and I can't
> say I understand the ~/.asoundrc 'language' either.
>
> With my existing ~/.asoundrc, (which works with all my other audio
> apps), when I run snd with the command:
>
>   $ SNDLIB_ALSA_DEVICE=plughw:1 snd file.wav
>
> it produces the following errors:
>
> [...]
>
> N.B. I changed '0' to '1' on the command line because the external
>      audio I/O device that I want snd to use is card 1
>
> Do I need to modify my ~/.asoundrc, if so how?
>
> sdt
>
>
> P.S. Here's my ~/.asoundrc again (for your convenience).
>
>   #set Edirol UA-3FX as default hardware device for all alsa aware applications
>   pcm.!default { type hw card 1 device 0 }
>   ctl.!default { type hw card 1 device 0 }
>
>   #force OSS apps to use Edirol UA-3FX too (with 'aoss' command)
>   pcm.dsp0 { type plug slave.pcm hw:1,0 }

I've finally got a rate converter to work.

My ~/.asoundrc now looks like this:

  #set Edirol UA-3FX as default hardware device for all alsa-aware apps
  pcm.!default { type hw card 1 device 0 }
  ctl.!default { type hw card 1 device 0 }

  #force OSS apps to use Edirol UA-3FX too, (with 'aoss' command)
  pcm.dsp0 { type plug slave.pcm "hw:1,0" }

  #rate converter (needed by snd)
  pcm.44k {
    type plug
         slave {
           pcm "hw:1,0"
           rate 44100
         }
  }

Unfortunately, when I call snd with the command:

  $ SNDLIB_ALSA_DEVICE="44k" snd &

 the problem persists, i.e., audio is output through my external
 USB I/O device but the rate is set to 32000.

sdt