Example #1
0
/*------------------------------------------------------------*/
void sbt_dual_L3(float *sample, short *pcm, int ch)
{
	int i;

	if (ch == 0)
	{
		for (i = 0; i < 18; i++)
		{
			fdct32(sample, pMP3Stream->vbuf + pMP3Stream->vb_ptr);
			window_dual(pMP3Stream->vbuf, pMP3Stream->vb_ptr, pcm);
			sample += 32;
			pMP3Stream->vb_ptr = (pMP3Stream->vb_ptr - 32) & 511;
			pcm += 64;
		}
	}
	else
	{
		for (i = 0; i < 18; i++)
		{
			fdct32(sample, pMP3Stream->vbuf2 + pMP3Stream->vb2_ptr);
			window_dual(pMP3Stream->vbuf2, pMP3Stream->vb2_ptr, pcm + 1);
			sample += 32;
			pMP3Stream->vb2_ptr = (pMP3Stream->vb2_ptr - 32) & 511;
			pcm += 64;
		}
	}
}
Example #2
0
void sbt_dual_L3(float *sample, short *pcm, int ch)
{
	int i;

	if (ch == 0)
		for (i = 0; i < 18; i++) {
			fdct32(sample, vbuf + vb_ptr);
			window_dual(vbuf, vb_ptr, pcm);
			sample += 32;
			vb_ptr = (vb_ptr - 32) & 511;
			pcm += 64;
		}
	else
		for (i = 0; i < 18; i++) {
			fdct32(sample, vbuf2 + vb2_ptr);
			window_dual(vbuf2, vb2_ptr, pcm + 1);
			sample += 32;
			vb2_ptr = (vb2_ptr - 32) & 511;
			pcm += 64;
		}
}
Example #3
0
/*============================================================*/
void sbt_mono_L3(float *sample, short *pcm, int ch)
{
	int i;

	ch = 0;
	for (i = 0; i < 18; i++)
	{
		fdct32(sample, pMP3Stream->vbuf + pMP3Stream->vb_ptr);
		window(pMP3Stream->vbuf, pMP3Stream->vb_ptr, pcm);
		sample += 32;
		pMP3Stream->vb_ptr = (pMP3Stream->vb_ptr - 32) & 511;
		pcm += 32;
	}
}
Example #4
0
void sbt_mono(float *sample, short *pcm, int n)
{
   int i;

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

}
Example #5
0
/*============================================================*/
void sbt_mono(MPEG *m, float *sample, short *pcm, int n)
{
   int i;

   for (i = 0; i < n; i++)
   {
      fdct32(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;
   }

}
Example #6
0
/*============================================================*/
void sbtB_mono(float *sample, unsigned char *pcm, int n)
{
   int i;

   for (i = 0; i < n; i++)
   {
      fdct32(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;
   }

}
Example #7
0
void sbt_mono_L3(float *sample, short *pcm, int ch)
{
   int i;

   ch = 0;
   for (i = 0; i < 18; i++)
   {
      fdct32(sample, vbuf + vb_ptr);
      window(vbuf, vb_ptr, pcm);
      sample += 32;
      vb_ptr = (vb_ptr - 32) & 511;
      pcm += 32;
   }

}
Example #8
0
/*============================================================*/
void sbtB_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(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;
}