Lines Matching refs:uc
220 unsigned char uc; in startread() local
238 lsx_readb(ft, &uc); in startread()
319 unsigned char uc; in read_samples() local
351 if (lsx_readb(ft, &uc) == SOX_EOF) { in read_samples()
356 *buf = SOX_UNSIGNED_8BIT_TO_SAMPLE(uc,); in read_samples()
362 if (lsx_readb(ft, &uc) == SOX_EOF) { in read_samples()
370 int u = uc; in read_samples()
384 int u = uc; in read_samples()
396 int u = uc; in read_samples()
408 if (lsx_readb(ft, &uc) == SOX_EOF) { in read_samples()
414 *buf++ = SOX_ULAW_BYTE_TO_SAMPLE(uc); in read_samples()
416 *buf++ = SOX_ALAW_BYTE_TO_SAMPLE(uc); in read_samples()
418 *buf++ = SOX_UNSIGNED_8BIT_TO_SAMPLE(uc,); in read_samples()
482 unsigned char uc; in write_samples() local
495 uc = SOX_SAMPLE_TO_UNSIGNED_8BIT(*buf++, ft->clips); in write_samples()
496 lsx_writeb(ft, uc); in write_samples()
556 unsigned char uc, block; in getblock() local
583 lsx_readb(ft, &uc); in getblock()
587 if (uc == 0) { in getblock()
591 if ((v->rate != -1) && (uc != v->rate)) { in getblock()
594 uc); in getblock()
597 v->rate = uc; in getblock()
605 lsx_readb(ft, &uc); in getblock()
606 if (v->format != -1 && uc != v->format) { in getblock()
610 v->format = uc; in getblock()
627 lsx_readb(ft, &uc); in getblock()
628 v->size = uc; in getblock()
629 lsx_readb(ft, &uc); in getblock()
630 if (v->channels != -1 && uc != v->channels) { in getblock()
634 v->channels = uc; in getblock()
652 lsx_readb(ft, &uc); in getblock()
653 if (uc == 0) { in getblock()
662 if ((v->rate != -1) && (uc != v->rate)) in getblock()
663 period = (period * (256. - uc)) / (256 - v->rate) + .5; in getblock()
665 v->rate = uc; in getblock()
671 lsx_readb(ft, &uc); in getblock()
672 lsx_readb(ft, &uc); in getblock()
720 lsx_readb(ft, &uc); /* bits_per_sample */ in getblock()
721 lsx_readb(ft, &uc); in getblock()
722 if (v->channels != -1 && uc != v->channels) { in getblock()
726 v->channels = uc; in getblock()
727 ft->signal.channels = uc? 2 : 1; /* Stereo */ in getblock()