return 0;
return nb_read;
static int read_samples(FILE *fin,int frame_size, int bits, int channels, int lsb, short * input, char *buff, int *size){      unsigned char in[MAX_FRAME_BYTES*2];   int i;   short *s;   int nb_read;   if (size && *size<=0)   {      return 1;   }   /*Read input audio*/   if (size)      *size -= bits/8*channels*frame_size;   if (buff)   {      for (i=0;i<12;i++)         in[i]=buff[i];      nb_read = fread(in+12,1,bits/8*channels*frame_size-12, fin) + 12;      if (size)         *size += 12;   } else {      nb_read = fread(in,1,bits/8*channels* frame_size, fin);   }   nb_read /= bits/8*channels;   /*fprintf (stderr, "%d\n", nb_read);*/   if (nb_read==0)      return 1;   s=(short*)in;   if(bits==8)   {      /* Convert 8->16 bits */      for(i=frame_size*channels-1;i>=0;i--)      {         s[i]=(in[i]<<8)^0x8000;      }   } else   {      /* convert to our endian format */      for(i=0;i<frame_size*channels;i++)      {         if(lsb)             s[i]=le_short(s[i]);          else            s[i]=be_short(s[i]);      }   }   /* FIXME: This is probably redundent now */   /* copy to float input buffer */   for (i=0;i<frame_size*channels;i++)   {      input[i]=(short)s[i];   }   for (i=nb_read*channels;i<frame_size*channels;i++)   {      input[i]=0;   }   return 0;}