Home
last modified time | relevance | path

Searched refs:bytes_per_unit (Results 1 – 19 of 19) sorted by relevance

/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioHdr.cc57 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()
127 cnt -= (cnt % (bytes_per_unit * channels)); in Bytes_to_Time()
151 offset -= (offset % (bytes_per_unit * channels)); in Time_to_Bytes()
164 cnt -= (cnt % (bytes_per_unit * channels)); in Bytes_to_Bytes()
177 cnt -= (cnt % (bytes_per_unit * channels)); in Bytes_to_Bytes()
[all …]
H A DAudioTypePcm.cc59 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()
310 switch (inhdr.bytes_per_unit) { in Convert()
337 switch (inhdr.bytes_per_unit) { in Convert()
345 switch (inhdr.bytes_per_unit) { in Convert()
359 switch (inhdr.bytes_per_unit) { in Convert()
381 switch (inhdr.bytes_per_unit) { in Convert()
[all …]
H A DAudioHdrParse.cc419 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()
522 bytes_per_unit = 1; in EncodingParse()
532 bytes_per_unit = 1; in EncodingParse()
544 bytes_per_unit = irint(prec); in EncodingParse()
557 bytes_per_unit = irint(prec); in EncodingParse()
570 bytes_per_unit = irint(prec); in EncodingParse()
[all …]
H A Dfilehdr.c820 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 Dhdr_misc.c49 ((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 DAudioTypeG72X.cc62 (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 DAudioTypeChannel.cc95 (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 DAudioTypeSampleRate.cc63 (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 DAudioTypeMux.cc100 (inhdr.bytes_per_unit != outhdr.bytes_per_unit)) in Convert()
112 unitsz = (size_t)inhdr.bytes_per_unit; in Convert()
H A DAudioUnixfile.cc140 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 Ddevice_ctl.c96 prinfo->precision = hdrp->bytes_per_unit * 8; in audio__setplayhdr()
117 hdrp->bytes_per_unit = prinfo->precision / 8; in audio__setplayhdr()
H A DAudioGain.cc202 newhdr.bytes_per_unit = 8; in Process()
/illumos-gate/usr/src/cmd/audio/include/
H A DAudioHdr.h123 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 Daudio_hdr.h91 unsigned bytes_per_unit; /* bytes per sample unit */ member
/illumos-gate/usr/src/cmd/audio/audioconvert/
H A Dconvert.cc274 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 Dparse.cc115 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 Dmain.cc394 hdr.bytes_per_unit = 0; in init_header()
/illumos-gate/usr/src/cmd/audio/audioplay/
H A Daudioplay.c436 (File_hdr.bytes_per_unit == 1)) { in main()
440 File_hdr.bytes_per_unit = 1; in main()
448 (File_hdr.bytes_per_unit == 3)) { in main()
452 File_hdr.bytes_per_unit = 1; in main()
527 File_hdr.bytes_per_unit * File_hdr.channels; in main()
579 if (File_hdr.bytes_per_unit == 2 && in main()
590 frame = File_hdr.bytes_per_unit * File_hdr.channels; in main()
601 frame = File_hdr.bytes_per_unit * File_hdr.channels; in main()
/illumos-gate/usr/src/cmd/audio/audiorecord/
H A Daudiorecord.c430 Precision = File_hdr.bytes_per_unit * 8; in main()
531 Dev_hdr.bytes_per_unit = Precision / 8; in main()
546 Dev_hdr.bytes_per_unit == 1) { in main()
552 Dev_hdr.bytes_per_unit = AUDIO_PRECISION_8 / 8; in main()
612 if (Dev_hdr.bytes_per_unit == 2 && in main()
705 Dev_hdr.channels, Dev_hdr.bytes_per_unit); in main()