diff --git a/modules/audio_filter/karaoke.c b/modules/audio_filter/karaoke.c<br>index 81bc276..609f365 100644<br>--- a/modules/audio_filter/karaoke.c<br>+++ b/modules/audio_filter/karaoke.c<br>@@ -58,6 +58,8 @@ static int Open (vlc_object_t *obj)<br>
}<br> <br> filter->pf_audio_filter = Process;<br>+ filter->fmt_out.audio.i_physical_channels = AOUT_CHAN_CENTER;<br>+ filter->fmt_out.audio.i_channels = 1;<br> return VLC_SUCCESS;<br> }<br> <br>
@@ -65,15 +67,15 @@ static block_t *Process (filter_t *filter, block_t *block)<br> {<br> const float factor = .70710678 /* 1. / sqrtf (2) */;<br> float *spl = (float *)block->p_buffer;<br>+ float *out = (float *)block->p_buffer;<br>
<br> for (unsigned i = block->i_nb_samples; i > 0; i--)<br> {<br> float s = (spl[0] - spl[1]) * factor;<br>-<br>- *(spl++) = s;<br>- *(spl++) = s;<br>- /* TODO: set output format to mono */<br>
+ spl += 2 ;<br>+ *(out++) = s;<br> }<br>+ block->i_buffer /= 2;<br> (void) filter;<br> return block;<br> }<br><br clear="all"><br>-- <br><div>Regards<br>Sukrit Sangwan</div>
<br>