ok i got it. I am rewriring it.<br>what i am now doing is creating a new output buffer whose size is half of input buffer.<br>on execution the pitch increases and there are gaps in the audio.<br>kindly guide me.<br><b> float *p_out_buf = (float *)p_out_block->p_buffer;<br>
for (unsigned i = block->i_nb_samples; i > 0; i--)<br> {<br> *p_out_buf = (spl[0] - spl[1]) * factor;<br> p_out_buf ++;<br> spl += 2;<br> }</b><br><br>one more thing why there is a multiplication by factor ( 1/sqrt(2) )<br>
<br><div class="gmail_quote">2012/3/6 Rémi Denis-Courmont <span dir="ltr"><<a href="mailto:remi@remlab.net" target="_blank">remi@remlab.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, 6 Mar 2012 01:49:10 -0800, Sukrit Sangwan<br>
<<a href="mailto:sukritsangwan@gmail.com" target="_blank">sukritsangwan@gmail.com</a>><br>
wrote:<br>
<div>> i have set the output of karaoke to mono.<br>
> i have tested, it works fine<br>
<br>
</div>The only thing this patch does is leak memory.<br>
<span><font color="#888888"><br>
--<br>
Rémi Denis-Courmont<br>
Sent from my collocated server<br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="http://mailman.videolan.org/listinfo/vlc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlc-devel</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div>Regards<br>Sukrit Sangwan</div>
<br>