[vlc-devel] [PATCH] karaoke : setting the output to mono

Sukrit Sangwan sukritsangwan at gmail.com
Tue Mar 6 12:16:35 CET 2012


ok i got it. I am rewriring it.
what i am now doing is creating a new output buffer whose size is half of
input buffer.
on execution the pitch increases and there are gaps in the audio.
kindly guide me.
*    float *p_out_buf = (float *)p_out_block->p_buffer;
    for (unsigned i = block->i_nb_samples; i > 0; i--)
    {
        *p_out_buf = (spl[0] - spl[1]) * factor;
        p_out_buf ++;
        spl += 2;
    }*

one more thing why there is a multiplication by factor ( 1/sqrt(2) )

2012/3/6 Rémi Denis-Courmont <remi at remlab.net>

> On Tue, 6 Mar 2012 01:49:10 -0800, Sukrit Sangwan
> <sukritsangwan at gmail.com>
> wrote:
> > i have set the output of karaoke to mono.
> > i have tested, it works fine
>
> The only thing this patch does is leak memory.
>
> --
> Rémi Denis-Courmont
> Sent from my collocated server
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>



-- 
Regards
Sukrit Sangwan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120306/5b03f784/attachment.html>


More information about the vlc-devel mailing list