Lines Matching refs:ch
387 int rec_raw(const char *fg, const char *device, int rate, int ch, in rec_raw() argument
408 count = rate * ch * 2; in rec_raw()
414 ch, rate, 16, format); in rec_raw()
421 return record_file(rate, ch, fd, count, flag, device); in rec_raw()
424 int rec_wav(const char *fg, const char *device, int rate, int ch, const char *fn) in rec_wav() argument
448 hdr.num_channels = ch; in rec_wav()
451 hdr.byte_rate = (rate * ch * hdr.bits_per_sample) / 8; in rec_wav()
452 hdr.block_align = ( hdr.bits_per_sample * ch ) / 8; in rec_wav()
459 count = rate * ch * 2; in rec_wav()
474 hdr.num_channels = ch; in rec_wav()
514 int ch = 1; in main() local
560 ch = (int)strtol(optarg, NULL, 0); in main()
609 rc = rec_wav(mmap, device, rate, ch, filename); in main()
611 rc = rec_raw(mmap, device, rate, ch, filename); in main()
613 rc = rec_wav(mmap, device, rate, ch, "dummy"); in main()