[vlc-devel] karaoke filter

Alexey Sokolov alexey at alexeysokolov.co.cc
Sun Apr 10 18:26:50 CEST 2011


Hi.

> static void *DoWork( filter_t *p_filter, block_t *p_in_buf )
The function returns void*, but doesn't have any return statement?

>     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];
>         }
>     }
What happens if there's only one channel (mono)?

-- 
Best regards,
Alexey "DarthGandalf" Sokolov




More information about the vlc-devel mailing list