Re: Trying to get arecord/aplay to work with M-Audio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Helge Fredriksen wrote:
> Ok, here's what I found out:
>
> Since these cards seem to lack the support for doing frequency 
> conversion in HW, you simply need to use the alsa plugin
> plughw instead of hw when referring to the card:
>
> arecord -Dplughw:0  test.wav
> aplay -Dplughw:0 test.wav
>
> Then alsa do the conversion for you... Strange though that giving hw 
> the argument
> -r 48000 didn't seem to work either.
>
> Credit to Florian Bomers for helping me out.
>
> Regards,
> Helge Fredriksen
>
Are you using any kind of sound server?  I have a Rev5.1 and I use 
direct library calls to set the internal hardware frame rate to one 
supported in hardware without any problems whatsoever, *unless* 
something else has taken over the card.  I use plughw because it does 
format conversions automatically which is handy but no frame rate 
conversion is done unless required.  48000 is a framerate that the card 
supports, so there should be no conversion required (others are 44100, 
64000, 88200, 96000, 176400, 192000) .  When you use hw instead of 
plughw, you are taking responsibility for all conversions to the cards 
internal representation.  The Rev5.1 uses signed 32 bit integers 
internally.  Most wav files are signed 16 bit integer files.  plughw 
will convert, hw won't.

At least that's my understanding.  Could be wrong.  :-)


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux