예제 #1
0
파일: sbt.c 프로젝트: vemod-/Object-Studio
void sbt_dual_mono(float *sample, short *pcm, int n)
{
   int i;

   for (i = 0; i < n; i++)
   {
      fdct32_dual_mono(sample, vbuf + vb_ptr);
      window(vbuf, vb_ptr, pcm);
      sample += 64;
      vb_ptr = (vb_ptr - 32) & 511;
      pcm += 32;
   }

}
예제 #2
0
/* convert dual to mono */
void sbtB_dual_mono(float *sample, unsigned char *pcm, int n)
{
   int i;

   for (i = 0; i < n; i++)
   {
      fdct32_dual_mono(sample, pMP3Stream->vbuf + pMP3Stream->vb_ptr);
      windowB(pMP3Stream->vbuf, pMP3Stream->vb_ptr, pcm);
      sample += 64;
      pMP3Stream->vb_ptr = (pMP3Stream->vb_ptr - 32) & 511;
      pcm += 32;
   }

}
예제 #3
0
파일: csbt.c 프로젝트: DC-SWAT/DreamShell
/* convert dual to mono */
void sbt_dual_mono(MPEG *m, float *sample, short *pcm, int n)
{
   int i;

   for (i = 0; i < n; i++)
   {
      fdct32_dual_mono(m,sample, m->csbt.vbuf + m->csbt.vb_ptr);
      window(m,m->csbt.vbuf, m->csbt.vb_ptr, pcm);
      sample += 64;
      m->csbt.vb_ptr = (m->csbt.vb_ptr - 32) & 511;
      pcm += 32;
   }

}
예제 #4
0
파일: sbtb.c 프로젝트: muromec/qtopia-ezx
/* convert dual to mono */
void sbtB_dual_mono(float *sample, unsigned char *pcm, 
                    int n, float vbuf[][512], int vb_ptr_arg[])
{
int i;

vb_ptr = vb_ptr_arg[0];
for(i=0;i<n;i++) {
  fdct32_dual_mono(sample, vbuf[0]+vb_ptr);
  windowB(vbuf[0], vb_ptr, pcm);
  sample += 64;
  vb_ptr = (vb_ptr-32) & 511;
  pcm += 32;
}

vb_ptr_arg[0] = vb_ptr;
}