Lines Matching defs:count
180 int pimasize, count ;
189 count = ((samplesperblock - 2) | 7) + 2 ;
190 pimasize = sizeof (IMA_ADPCM_PRIVATE) + psf->sf.channels * (blockalign + samplesperblock + sizeof(short) * count) ;
226 count = 2 * (pima->blocksize - 4 * pima->channels) / pima->channels + 1 ;
228 if (pima->samplesperblock != count)
229 { psf_log_printf (psf, "*** Error : samplesperblock should be %d.\n", count) ;
239 psf_log_printf (psf, "still need to check block count\n") ;
265 static int count = 0 ;
266 count ++ ;
572 { int count, total = 0, indx = 0 ;
583 count = (pima->samplesperblock - pima->samplecount) * pima->channels ;
584 count = (len - indx > count) ? count : len - indx ;
586 memcpy (&(ptr [indx]), &(pima->samples [pima->samplecount * pima->channels]), count * sizeof (short)) ;
587 indx += count ;
588 pima->samplecount += count / pima->channels ;
598 int readcount, count ;
608 count = ima_read_block (psf, pima, ptr, readcount) ;
610 total += count ;
611 len -= count ;
612 if (count != readcount)
624 int k, bufferlen, readcount, count ;
635 count = ima_read_block (psf, pima, sptr, readcount) ;
638 total += count ;
640 if (count != readcount)
652 int k, bufferlen, readcount, count ;
666 count = ima_read_block (psf, pima, sptr, readcount) ;
669 total += count ;
671 if (count != readcount)
683 int k, bufferlen, readcount, count ;
697 count = ima_read_block (psf, pima, sptr, readcount) ;
700 total += count ;
702 if (count != readcount)
875 { int count, total = 0, indx = 0 ;
878 { count = (pima->samplesperblock - pima->samplecount) * pima->channels ;
880 if (count > len - indx)
881 count = len - indx ;
883 memcpy (&(pima->samples [pima->samplecount * pima->channels]), &(ptr [total]), count * sizeof (short)) ;
884 indx += count ;
885 pima->samplecount += count / pima->channels ;
898 int writecount, count ;
908 count = ima_write_block (psf, pima, ptr, writecount) ;
910 total += count ;
911 len -= count ;
912 if (count != writecount)
924 int k, bufferlen, writecount, count ;
937 count = ima_write_block (psf, pima, sptr, writecount) ;
938 total += count ;
940 if (count != writecount)
952 int k, bufferlen, writecount, count ;
968 count = ima_write_block (psf, pima, sptr, writecount) ;
969 total += count ;
971 if (count != writecount)
983 int k, bufferlen, writecount, count ;
999 count = ima_write_block (psf, pima, sptr, writecount) ;
1000 total += count ;
1002 if (count != writecount)