Thank you for the reply. Finally I figure out the problem. The code is OK, but I thought it should be louder. So when I was multiplying t by 2, I could not hear the difference from my laptop speaker. But after multiplying PCM data by 20, I heard a significant difference.<br>
<br>Best,<br>Dripsotne<br><br><div class="gmail_quote">On Tue, Oct 27, 2009 at 1:44 AM, Jens M Andreasen <span dir="ltr"><<a href="mailto:jens.andreasen@comhem.se">jens.andreasen@comhem.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Mon, 2009-10-26 at 17:53 -0700, Drip Stone wrote:<br>
<br>
><br>
>         I pasted all the code at <a href="http://pastebin.com/m7fdf0957" target="_blank">http://pastebin.com/m7fdf0957</a>.<br>
<br>
</div>OK! Aside from the C++ style of declaring iterators, I just made this<br>
change in (or around) line 126 to raise left channel by 6 dB:<br>
<br>
-8<------------------------------------------<br>
 //left<br>
        int i;<br>
        for (i = 0; i < frames; i++ )<br>
        {<br>
            float t = 0;<br>
            int j;<br>
            if ( left )<br>
<div class="im">            {<br>
                t = *((float*)&(fbuffer[pos+i*4]));<br>
</div>                t *= 2.0f; // <-- Works like a charm?<br>
...<br>
<br>
---------------------------8<---------------------<br>
<br>
What was the problem now again?<br>
<br>
</blockquote></div><br>