On Tue, Jun 16, 2009 at 1:31 PM, Grant<emailgrant@xxxxxxxxx> wrote: > When I play 16/44.1 flac files via mpd, the CPU stays around 95%. > When I play the same files via mplayer, the CPU stays around 2% and I > see: > > AO: [alsa] 96000Hz 2ch s16le (2 bytes per channel) > > This is confusing for 2 reasons: > > 1. Doesn't the above indicate that the source file is not being > converted from 16-bit to 24-bit even though I've specified "format > S24_3LE"? Are you sure the hardware actually supports S24_3LE? Most 24 bit soundcards require 24 bit audio to be packed into 32 bit words. See if you can output S24_3LE directly to the hw device. > > 2. Why is so much more CPU being used to play files with mpd than with > mplayer? If I remove the asound.conf entries, mpd no longer uses more > than 2% CPU. > You'd have to profile mpd to see where it's spending all its time. Maybe it writes to the soundcard in much smaller chunks, or spins if the card if it has data but the device is not ready yet. Lee ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user