Lines Matching defs:shift
709 int bits = 8, sign = 0, shift = 0;
721 shift = 1;
728 shift = 2;
736 info->shift = (as->nchannels == 2) + shift;
737 info->align = (1 << info->shift) - 1;
738 info->bytes_per_second = info->freq << info->shift;
749 memset (buf, 0x00, len << info->shift);
754 memset (buf, 0x80, len << info->shift);
761 int shift = info->nchannels - 1;
768 for (i = 0; i < len << shift; i++) {
778 int shift = info->nchannels - 1;
785 for (i = 0; i < len << shift; i++) {
972 uint8_t *dst = advance (pcm_buf, hw->rpos << hw->info.shift);
1022 samples = size >> sw->info.shift;
1058 return ret << sw->info.shift;
1131 samples = size >> sw->info.shift;
1171 size >> sw->info.shift,
1177 return ret << sw->info.shift;
1301 return sw->hw->samples << sw->hw->info.shift;
1409 live, (((int64_t) live << 32) / sw->ratio) << sw->info.shift
1412 return (((int64_t) live << 32) / sw->ratio) << sw->info.shift;
1435 live, dead, (((int64_t) dead << 32) / sw->ratio) << sw->info.shift);
1438 return (((int64_t) dead << 32) / sw->ratio) << sw->info.shift;
1456 int bytes = to_write << hw->info.shift;
1638 to_capture << hw->info.shift);
2126 cap->buf = audio_calloc (AUDIO_FUNC, hw->samples, 1 << hw->info.shift);
2130 hw->samples, 1 << hw->info.shift);