Exemplo n.º 1
0
/*------------------------------------------------------------*/
void i_sbt_init()
{
   int i;
   static int first_pass = 1;

#ifdef FULL_INTEGER
   static int full_integer = 1;

#else
   static int full_integer = 0;

#endif

   if (first_pass)
   {
      gencoef();
      if (full_integer)
	 genwincoef();
      else
	 genwincoef_q();
      first_pass = 0;
   }

/* clear window vbuf */
   for (i = 0; i < 512; i++)
      vbuf[i] = vbuf2[i] = 0;
   vb_ptr = 0;

}
Exemplo n.º 2
0
/*------------------------------------------------------------*/
void sbt_init(MPEG *m)
{
   int i;

   if (m->csbt.first_pass)
   {
      gencoef(m);
      m->csbt.first_pass = 0;
   }

/* clear window m->csbt.vbuf */
   for (i = 0; i < 512; i++)
   {
      m->csbt.vbuf[i] = 0.0F;
      m->csbt.vbuf2[i] = 0.0F;
   }
   m->csbt.vb2_ptr = m->csbt.vb_ptr = 0;

}
Exemplo n.º 3
0
/*------------------------------------------------------------*/
void sbt_init()
{
   int i;
   static int first_pass = 1;

   if (first_pass)
   {
      gencoef();
      first_pass = 0;
   }

/* clear window pMP3Stream->vbuf */
   for (i = 0; i < 512; i++)
   {
      pMP3Stream->vbuf[i] = 0.0F;
      pMP3Stream->vbuf2[i] = 0.0F;
   }
   pMP3Stream->vb2_ptr = pMP3Stream->vb_ptr = 0;

}