Re: ALSA bug with hw:0,0?

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

 



On Sun, 3 Jan 2010, Sergei Steshenko wrote:

On Sun, 3 Jan 2010 05:47:36 -0800
Grant <emailgrant@xxxxxxxxx> wrote:

Can the conversion to S24_3LE be lossy?

- Grant


The conversion is to 24 bits. So, if the conversion is from lower numbers
of bits,it's lossless, if from higher - it's lossy.

Regards,
 Sergei.

I think mpd outputs in a 32-bit format.  If plughw converts that
32-bit format to S24_3LE, will it be lossy compared to the original
audio which is 16-bit or 24-bit?  Or would mpd pad the 16-bit or
24-bit audio with zeros, and then plughw strips some of the zeros off?

- Grant


MPD may use as many bits as it likes, but are the bits present in the
original music file ? AFAIK not, i.e. the added buts are zeros and the
stripped bits are zeros.

It depends on how the bits are added. Usually the bits added are low order
bits-- this is to ensure that roundoff error does not keep adding noise to the
system, and to use a common calculational track no matter wha the input, and
so they use a size that is bigger then any possible. On the other hand they
may want extra headroom and add the padding at the high end instead. Now, if
the program were at all competent, they would make sure that the output was
the same as the input (ie do the stripping down internally) to make sure that
the problems feared would not occur. But then again, who knows if the authors
were competent.

Anyway, you could tell by running the input and output through sox and seeing
if the amplitude is the same. If it is, mpd behaves properly. If it is not,
then not.
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
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