Le quintidi 5 fructidor, an CCXXIII, bri...@aracnet.com a écrit :
> ok. now i get it .  i was confused by the link to the web-page you posted.
> it seemed to indicate that you could get aplay to perform the conversion
> by specifying the format with the -f option. clearly it can't do that.

The -f option specifies what format to assume from the file if it is not
specified by the header. WAVE files have a header that specify the format;
obviously, /dev/urandom (although if you are really lucky you could get
Citizen Kane in Matroska/Daala/Opus from it; and Daala 1.0's source code).

> this is very interesting, because if aplay can't convert the file format,
> how is it getting converted ??

ALSA does the conversion, more precisely the plugin called "plug". Adding
the "-D hw:0" option to aplay instructs it not to use any plugin. When
things work, plugins help them working smoothly; when things do not work,
plugins make it harder to understand.

> also, i forgot to mention that I also put the following in  
> /etc/modprobe.d/alsa/base.conf
> 
> options snd slots=snd_usb_audio,snd_hda_intel,snd_hda_intel
> options snd_usb_audio index=0 vid=0x08bb pid=0x2704
> 
> My understanding is that this will cause the modules to be loaded in a
> fixed order which would make the HW designations consistent.

If possible, although I suspect it will have trouble working reliably with
an USB device.

> I believe now that's unnecessary since i'm now using "card A2" in my
> .asoundrc file.

You should show the resulting .asoundrc file, because it is very easy to
break things in it.

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: Digital signature

Reply via email to