Takashi Iwai <[EMAIL PROTECTED]> wrote:

> At Wed, 25 Jan 2006 12:45:35 +0000,
> Sebastian Tennant wrote:
>> 
>> 
>> Hi all,
>> 
>> I'm get the following message when I open a wav file in snd:
>> 
>>  "alsa_audio_open: hw:1,0: could not set rate to exactly 44100, set to 32000 
>> instead"
>> 
>> How can I correct this?
>> 
>> My ~/.asoundrc looks like this:
>> 
>>   pcm.!default{ type hw card 1 device 0 }
>
> How about:
>       pcm.!default "plughw:1,0"
>
>>   ctl.!default { type hw card 1 device 0 }
>> 
>>   # for use with aoss
>>   pcm.dsp0 { type plug slave.pcm "hw:1,0" }
>
> Maybe it's easier to change the order your device via "index" module
> option in your case, so that the proper device becomse the first one.
>
> (Would be nice to have a dynamic routing table for cards configurable
>  via asoundrc, too.  It's in my TODO list, but 10,000 meters below the
>  top :)
>
> Takashi

Tried:

        pcm.!default "plughw:1,0"

... but no joy.  Sound defaults to internal PC soundcard.  (hw:1,0 is
an external USB I/O device, connected to my stereo).

It's strange because all alsa aware applications use hw:1,0 by
default, i.e., as intended, and all oss apps work fine if called with
aoss, except for snd.

For instance, the play command (that is actually a wrapper to sox)
plays the wav file at the right speed and using hw:1,0 when called
with aoss:

  $ aoss play file.wav

But aoss does not work with snd, hence the need to call it with the
command:

  $ SNDLIB_ALSA_DEVICE="hw:1,0" snd &

whereupon I get the sloooow sound and the "could not set rate"
message.

sdt



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to