looks like in the remap_channels method, calling oil_vectoradd_s16, the constant to multiply by is set to 1.<br><br>                    if (r-&gt;map_table[oc][ic] &gt;= 1.0) {<br>                        static const int16_t one = 1;<br>
<br>                        oil_vectoradd_s16(<br>                                (int16_t*) dst + oc, o_skip,<br>                                (int16_t*) dst + oc, o_skip,<br>                                (int16_t*) src + ic, i_skip,<br>
                                (int) n_frames,<br>                                &amp;one, &amp;one);<br><br>                    } <br><br>shouldn&#39;t there be a divide by 2 somewhere if we are adding two channels together?<br>
<br><br><div class="gmail_quote">On Wed, Sep 15, 2010 at 2:54 PM, Baek Chang <span dir="ltr">&lt;<a href="mailto:baeksan@ccrma.stanford.edu">baeksan@ccrma.stanford.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I am seeing warp around happening due to overflow when doing the following.<br>
<br>
parec -r --device=alsa_output.pci_8086_269a_sound_card_0_alsa_playback_0.monitor<br>
output.raw --format=s16le --rate=44100 --channels=1<br>
paplay --format=s16le --rate=44100 --channels=2<br>
<br>
<br>
if i use parec with the same configuration as the sink that I am<br>
playing the wave file on, then there is no overflow/wraparound.  It<br>
seems to be a problem with the remapping of the channels from stereo<br>
to mono.  Is there an additional gain stage applied in this remapping<br>
that might be causing this?<br>
<br>
I am using pulseaudio 0.9.14<br>
<br>
<br>
Thanks<br>
</blockquote></div>