Home
last modified time | relevance | path

Searched refs:samples_per_unit (Results 1 – 16 of 16) sorted by relevance

/titanic_41/usr/src/cmd/audio/utilities/
H A DAudioHdr.cc58 samples_per_unit = 0; in Clear()
70 if ((bytes_per_unit < 1) || (samples_per_unit < 1) || in Validate()
81 if (samples_per_unit != 1) in Validate()
88 if (samples_per_unit != 1) in Validate()
97 if (samples_per_unit != 1) in Validate()
104 if ((bytes_per_unit != 1) || (samples_per_unit != 2)) in Validate()
111 if ((bytes_per_unit != 3) || (samples_per_unit != 8)) in Validate()
133 (double)samples_per_unit)); in Bytes_to_Time()
150 (double)samples_per_unit))); in Time_to_Bytes()
192 return ((Double)(((double)cnt * (double)samples_per_unit) / in Samples_to_Time()
[all …]
H A DAudioHdrParse.cc128 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()
417 samples_per_unit = 1; in EncodingParse()
425 samples_per_unit = 1; in EncodingParse()
438 samples_per_unit = 1; in EncodingParse()
448 samples_per_unit = 1; in EncodingParse()
458 samples_per_unit = 1; in EncodingParse()
468 samples_per_unit = 1; in EncodingParse()
478 samples_per_unit = 1; in EncodingParse()
[all …]
H A Dhdr_misc.c52 (double)hp->samples_per_unit)); in audio_bytes_to_secs()
68 (double)hp->samples_per_unit))); in audio_secs_to_bytes()
194 (h1->samples_per_unit != h2->samples_per_unit)) in audio_cmp_hdr()
254 if (hdrp->samples_per_unit != 1) in audio_enc_to_str()
264 if (hdrp->samples_per_unit != 0) { in audio_enc_to_str()
268 (double)hdrp->samples_per_unit); in audio_enc_to_str()
H A Dfilehdr.c823 hdrp->samples_per_unit = 1; in audio_decode_filehdr()
828 hdrp->samples_per_unit = 1; in audio_decode_filehdr()
837 hdrp->samples_per_unit = 1; in audio_decode_filehdr()
842 hdrp->samples_per_unit = 1; in audio_decode_filehdr()
847 hdrp->samples_per_unit = 1; in audio_decode_filehdr()
852 hdrp->samples_per_unit = 1; in audio_decode_filehdr()
857 hdrp->samples_per_unit = 1; in audio_decode_filehdr()
862 hdrp->samples_per_unit = 1; in audio_decode_filehdr()
867 hdrp->samples_per_unit = 2; in audio_decode_filehdr()
872 hdrp->samples_per_unit = 8; in audio_decode_filehdr()
[all …]
H A DAudioTypeG72X.cc63 if ((h.samples_per_unit != 1) || in CanConvert()
69 if ((h.samples_per_unit != 1) || in CanConvert()
74 if ((h.samples_per_unit != 2) || in CanConvert()
79 if (h.samples_per_unit != 8) in CanConvert()
H A DAudioTypePcm.cc46 hdr.samples_per_unit = 1; in AudioTypePcm()
56 if (h.samples_per_unit != 1) in CanConvert()
234 (inhdr.samples_per_unit != outhdr.samples_per_unit) || in Convert()
235 (inhdr.samples_per_unit != 1) || in Convert()
H A DAudioTypeChannel.cc96 (inhdr.samples_per_unit != outhdr.samples_per_unit) || in Convert()
H A DAudioUnixfile.cc141 hdr_local.samples_per_unit = ohdr.samples_per_unit; in decode_filehdr()
209 ohdr.samples_per_unit = hdr_local.samples_per_unit; in encode_filehdr()
H A DAudioTypeMux.cc101 (inhdr.samples_per_unit != outhdr.samples_per_unit) || in Convert()
H A Ddevice_ctl.c120 hdrp->samples_per_unit = 1; in audio__setplayhdr()
/titanic_41/usr/src/cmd/audio/include/
H A DAudioHdr.h124 unsigned int samples_per_unit; // samples per unit variable
131 sample_rate(0), samples_per_unit(0), bytes_per_unit(0), in AudioHdr()
141 samples_per_unit(hdr.samples_per_unit), in AudioHdr()
191 hdr.samples_per_unit = samples_per_unit; in Audio_hdr()
203 (samples_per_unit == tst.samples_per_unit) &&
H A Daudio_hdr.h92 unsigned samples_per_unit; /* samples per unit */ member
/titanic_41/usr/src/cmd/audio/audioconvert/
H A Dparse.cc116 hdr.samples_per_unit = 1; in audioformat_parse()
122 hdr.samples_per_unit = 1; in audioformat_parse()
128 hdr.samples_per_unit = 1; in audioformat_parse()
H A Dconvert.cc277 ihdr.samples_per_unit = 1; in add_pcm_convert()
378 ihdr.samples_per_unit = 2; in add_compress()
382 ihdr.samples_per_unit = 8; in add_compress()
439 ihdr.samples_per_unit = 1; in add_decompress()
527 if (hdr.samples_per_unit != 1) in pcmtype()
543 (ihp.samples_per_unit != \
544 ohp.samples_per_unit) || \
H A Dmain.cc396 hdr.samples_per_unit = 0; in init_header()
/titanic_41/usr/src/cmd/audio/audioplay/
H A Daudioplay.c430 (File_hdr.samples_per_unit == 2) && in main()
434 File_hdr.samples_per_unit = 1; in main()
442 (File_hdr.samples_per_unit == 8) && in main()
446 File_hdr.samples_per_unit = 1; in main()