[vlc-devel] karaoke filter

Ilkka Ollakka ileoo at videolan.org
Sun Apr 10 19:44:01 CEST 2011


On Sat, Apr 09, 2011 at 08:26:35PM +0800, 郭宇宏 wrote:
> I'm VideoLan gsoc 2011 student yuhong.

Hi,

> This is the filter porting from Mplayer.


>     /* filter calculation */
>     for( i = 0; i < i_samples; i++) {
>         for( i_chan = 0; i_chan < i_channels; i_chan++ ) {
>            p_in_buf[i] = (p_in_buf[i] - p_in_buf[i+1]) * 0.7;
>            p_in_buf[i+1] = p_in_buf[i];
>         }
>     }

Why do you loop over i_channels but don't use i_chan for anything


-- 
Ilkka Ollakka
Slang is language that takes off its coat, spits on its hands, and goes
to work.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110410/4954b7e5/attachment.sig>


More information about the vlc-devel mailing list