From: Ed W. <li...@wi...> - 2005-01-14 00:11:33
|
>Do you know a library that would handle changes in the volume/amp more >nicely than what xine-lib currently does? (and that would support 24-bit >samples as well...) > > What do you have in mind? Turning audio into 32bit (specifically 32bit to avoid rounding), before doing any further processing would be a good idea. You can then apply volume effects to your hearts content and truncate back to whatever the soundcard supports at the last minute. To do 32bit to 16/24bit conversion perfectly is slightly non-trivial, but the code is available from other projects. If you want to get really fancy you can also apply some dither. I should have thought that most soundcards would do the volume control in the alsa/oss output layer though? In the case of my Jack output this works at 32bit float internally, so volume control is done very precisely. Actually I have an RME card and so if I used the hardware mixing it would be done at 40 bit resolution, but I doubt this would be a practical advantage in my situation... So basically are you prepared to uprate all the audio to 32 bit as soon as we decode it, and just standardise on processing that throughout xine...? Ed W |