fix slight "tick tick" in interpolated audio resmapling. found it.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 8 Nov 2011 07:10:33 +0000 (07:10 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 8 Nov 2011 07:10:33 +0000 (07:10 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@64936 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/eet_snd_reader/eet_snd_reader.c

index 3bfa4bb..4e2dec9 100644 (file)
@@ -270,7 +270,7 @@ remix_pcm_resample(SndInstanceData *si)
              src = srcbase + (pos * chnum);
              if (chnum == 2)
                {
-                  if (i == 0)
+                  if (pos == 0)
                     {
                        psam[0] = si->prevreadbuf[0];
                        psam[1] = si->prevreadbuf[1];
@@ -285,7 +285,7 @@ remix_pcm_resample(SndInstanceData *si)
                }
              else
                {
-                  if (i == 0)
+                  if (pos == 0)
                     psam[0] = si->prevreadbuf[0];
                   else
                     psam[0] = src[0 - 1];