/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | AudioHdr.cc | 57 bytes_per_unit = 0; in Clear() 68 if ((bytes_per_unit < 1) || (samples_per_unit < 1) || in Validate() 77 if (bytes_per_unit > 4) in Validate() 84 if ((bytes_per_unit != 4) && (bytes_per_unit != 8)) in Validate() 93 if (bytes_per_unit != 1) in Validate() 102 if ((bytes_per_unit != 1) || (samples_per_unit != 2)) in Validate() 109 if ((bytes_per_unit != 3) || (samples_per_unit != 8)) in Validate() 127 cnt -= (cnt % (bytes_per_unit * channels)); in Bytes_to_Time() 130 ((double)(channels * bytes_per_unit * sample_rate) / in Bytes_to_Time() 147 ((double)(channels * bytes_per_unit * sample_rate) / in Time_to_Bytes() [all …]
|
H A D | AudioTypePcm.cc | 59 switch (h.bytes_per_unit) { in CanConvert() 67 switch (h.bytes_per_unit) { in CanConvert() 76 switch (h.bytes_per_unit) { in CanConvert() 240 (outhdr.bytes_per_unit <= inhdr.bytes_per_unit)) { in Convert() 280 switch (inhdr.bytes_per_unit) { in Convert() 282 switch (outhdr.bytes_per_unit) { in Convert() 290 switch (outhdr.bytes_per_unit) { in Convert() 298 switch (outhdr.bytes_per_unit) { in Convert() 310 switch (inhdr.bytes_per_unit) { in Convert() 312 switch (outhdr.bytes_per_unit) { in Convert() [all …]
|
H A D | AudioHdrParse.cc | 128 if ((samples_per_unit == 0) || (bytes_per_unit == 0) || in EncodingString() 133 iprec = (bytes_per_unit * 8) / samples_per_unit; in EncodingString() 134 prec = ((Double)bytes_per_unit * 8.) / (Double)samples_per_unit; in EncodingString() 419 bytes_per_unit = 1; in EncodingParse() 427 bytes_per_unit = 1; in EncodingParse() 440 bytes_per_unit = irint(prec / 8.); in EncodingParse() 450 bytes_per_unit = irint(prec / 8.); in EncodingParse() 460 bytes_per_unit = irint(prec / 8.); in EncodingParse() 470 bytes_per_unit = irint(prec / 8.); in EncodingParse() 480 bytes_per_unit = irint(prec / 8.); in EncodingParse() [all …]
|
H A D | filehdr.c | 820 hdrp->bytes_per_unit = 1; in audio_decode_filehdr() 825 hdrp->bytes_per_unit = 1; in audio_decode_filehdr() 834 hdrp->bytes_per_unit = 1; in audio_decode_filehdr() 839 hdrp->bytes_per_unit = 2; in audio_decode_filehdr() 844 hdrp->bytes_per_unit = 3; in audio_decode_filehdr() 849 hdrp->bytes_per_unit = 4; in audio_decode_filehdr() 854 hdrp->bytes_per_unit = 4; in audio_decode_filehdr() 859 hdrp->bytes_per_unit = 8; in audio_decode_filehdr() 864 hdrp->bytes_per_unit = 1; in audio_decode_filehdr() 869 hdrp->bytes_per_unit = 3; in audio_decode_filehdr() [all …]
|
H A D | hdr_misc.c | 49 ((double)(hp->channels * hp->bytes_per_unit * hp->sample_rate) / in audio_bytes_to_secs() 65 ((double)(hp->channels * hp->bytes_per_unit * hp->sample_rate) / in audio_secs_to_bytes() 69 offset -= (offset % (hp->bytes_per_unit * hp->channels)); in audio_secs_to_bytes() 190 (h1->bytes_per_unit != h2->bytes_per_unit) || in audio_cmp_hdr() 255 (void) sprintf(pbuf, "%u-bit", hdrp->bytes_per_unit * 8); in audio_enc_to_str() 265 (double)(hdrp->bytes_per_unit * 8) / in audio_enc_to_str()
|
H A D | AudioTypeG72X.cc | 62 (h.bytes_per_unit != 2)) in CanConvert() 68 (h.bytes_per_unit != 1)) in CanConvert() 73 (h.bytes_per_unit != 1)) in CanConvert() 81 if (h.bytes_per_unit != 3) in CanConvert() 128 (inhdr.bytes_per_unit == outhdr.bytes_per_unit)) { in Convert() 134 4 * outhdr.bytes_per_unit * outhdr.channels); in Convert()
|
H A D | AudioTypeChannel.cc | 95 (inhdr.bytes_per_unit != outhdr.bytes_per_unit)) in Convert() 112 (inhdr.bytes_per_unit > 2)) in Convert() 132 switch (inhdr.bytes_per_unit) { in Convert()
|
H A D | AudioTypeSampleRate.cc | 63 (h.bytes_per_unit != 2) || in CanConvert() 181 cnt = (size_t)nsamp * h.bytes_per_unit; in Flush() 189 cnt = (size_t)nsamp * h.bytes_per_unit; in Flush()
|
H A D | AudioTypeMux.cc | 100 (inhdr.bytes_per_unit != outhdr.bytes_per_unit)) in Convert() 112 unitsz = (size_t)inhdr.bytes_per_unit; in Convert()
|
H A D | AudioUnixfile.cc | 140 hdr_local.bytes_per_unit = ohdr.bytes_per_unit; in decode_filehdr() 208 ohdr.bytes_per_unit = hdr_local.bytes_per_unit; in encode_filehdr()
|
H A D | device_ctl.c | 96 prinfo->precision = hdrp->bytes_per_unit * 8; in audio__setplayhdr() 117 hdrp->bytes_per_unit = prinfo->precision / 8; in audio__setplayhdr()
|
H A D | AudioGain.cc | 202 newhdr.bytes_per_unit = 8; in Process()
|
/illumos-gate/usr/src/cmd/audio/include/ |
H A D | AudioHdr.h | 123 unsigned int bytes_per_unit; // bytes per sample unit variable 129 sample_rate(0), samples_per_unit(0), bytes_per_unit(0), in AudioHdr() 140 bytes_per_unit(hdr.bytes_per_unit), in AudioHdr() 190 hdr.bytes_per_unit = bytes_per_unit; in Audio_hdr() 202 (bytes_per_unit == tst.bytes_per_unit) &&
|
H A D | audio_hdr.h | 91 unsigned bytes_per_unit; /* bytes per sample unit */ member
|
/illumos-gate/usr/src/cmd/audio/audioconvert/ |
H A D | convert.cc | 274 ihdr.bytes_per_unit = unitsz; in add_pcm_convert() 375 ihdr.bytes_per_unit = unitsz; in add_compress() 379 ihdr.bytes_per_unit = unitsz; in add_compress() 436 ihdr.bytes_per_unit = unitsz; in add_decompress() 441 ihdr.bytes_per_unit = 2; in add_decompress() 543 (ihp.bytes_per_unit != ohp.bytes_per_unit)) 590 ohdr.encoding, ohdr.bytes_per_unit, in build_conversion_list() 615 ohdr.encoding, ohdr.bytes_per_unit, in build_conversion_list() 629 ohdr.encoding, ohdr.bytes_per_unit, in build_conversion_list() 634 ohdr.encoding, ohdr.bytes_per_unit, in build_conversion_list() [all …]
|
H A D | parse.cc | 115 hdr.bytes_per_unit = 2; in audioformat_parse() 121 hdr.bytes_per_unit = 2; in audioformat_parse() 127 hdr.bytes_per_unit = 1; in audioformat_parse()
|
H A D | main.cc | 394 hdr.bytes_per_unit = 0; in init_header()
|
/illumos-gate/usr/src/cmd/audio/audioplay/ |
H A D | audioplay.c | 435 (File_hdr.bytes_per_unit == 1)) { in main() 439 File_hdr.bytes_per_unit = 1; in main() 447 (File_hdr.bytes_per_unit == 3)) { in main() 451 File_hdr.bytes_per_unit = 1; in main() 526 File_hdr.bytes_per_unit * File_hdr.channels; in main() 578 if (File_hdr.bytes_per_unit == 2 && in main() 589 frame = File_hdr.bytes_per_unit * File_hdr.channels; in main() 600 frame = File_hdr.bytes_per_unit * File_hdr.channels; in main()
|
/illumos-gate/usr/src/cmd/audio/audiorecord/ |
H A D | audiorecord.c | 429 Precision = File_hdr.bytes_per_unit * 8; in main() 530 Dev_hdr.bytes_per_unit = Precision / 8; in main() 545 Dev_hdr.bytes_per_unit == 1) { in main() 551 Dev_hdr.bytes_per_unit = AUDIO_PRECISION_8 / 8; in main() 611 if (Dev_hdr.bytes_per_unit == 2 && in main() 704 Dev_hdr.channels, Dev_hdr.bytes_per_unit); in main()
|