[vlc-devel] karaoke filter
Steinar H. Gunderson
sgunderson at bigfoot.com
Fri Apr 15 13:25:44 CEST 2011
On Fri, Apr 15, 2011 at 07:16:04PM +0800, 郭宇宏 wrote:
> for(i=0;i<len;i+=nch)
> {
> a[i] = (a[i] - a[i+1]) * 0.7;
> a[i+1]=a[i];
> }*
My guess is that this is really 1/sqrt(2), which makes sense from an energy
point of view (or at least would, if the channels were independent; if not,
it depends on the correlation), but can cause clipping.
0.5 is the safe choice, of course.
/* Steinar */
--
Homepage: http://www.sesse.net/
More information about the vlc-devel
mailing list