Home
last modified time | relevance | path

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

/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioHdr.cc56 samples_per_unit = 0; in Clear()
68 if ((bytes_per_unit < 1) || (samples_per_unit < 1) || in Validate()
79 if (samples_per_unit != 1) in Validate()
86 if (samples_per_unit != 1) in Validate()
95 if (samples_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()
131 (double)samples_per_unit)); in Bytes_to_Time()
148 (double)samples_per_unit))); in Time_to_Bytes()
190 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()
422 samples_per_unit = 1; in EncodingParse()
430 samples_per_unit = 1; in EncodingParse()
443 samples_per_unit = 1; in EncodingParse()
453 samples_per_unit = 1; in EncodingParse()
463 samples_per_unit = 1; in EncodingParse()
473 samples_per_unit = 1; in EncodingParse()
483 samples_per_unit = 1; in EncodingParse()
[all …]
H A Dhdr_misc.c50 (double)hp->samples_per_unit)); in audio_bytes_to_secs()
66 (double)hp->samples_per_unit))); in audio_secs_to_bytes()
192 (h1->samples_per_unit != h2->samples_per_unit)) in audio_cmp_hdr()
252 if (hdrp->samples_per_unit != 1) in audio_enc_to_str()
262 if (hdrp->samples_per_unit != 0) { in audio_enc_to_str()
266 (double)hdrp->samples_per_unit); in audio_enc_to_str()
H A Dfilehdr.c821 hdrp->samples_per_unit = 1; in audio_decode_filehdr()
826 hdrp->samples_per_unit = 1; in audio_decode_filehdr()
835 hdrp->samples_per_unit = 1; in audio_decode_filehdr()
840 hdrp->samples_per_unit = 1; in audio_decode_filehdr()
845 hdrp->samples_per_unit = 1; in audio_decode_filehdr()
850 hdrp->samples_per_unit = 1; in audio_decode_filehdr()
855 hdrp->samples_per_unit = 1; in audio_decode_filehdr()
860 hdrp->samples_per_unit = 1; in audio_decode_filehdr()
865 hdrp->samples_per_unit = 2; in audio_decode_filehdr()
870 hdrp->samples_per_unit = 8; in audio_decode_filehdr()
[all …]
H A DAudioTypeG72X.cc61 if ((h.samples_per_unit != 1) || in CanConvert()
67 if ((h.samples_per_unit != 1) || in CanConvert()
72 if ((h.samples_per_unit != 2) || in CanConvert()
77 if (h.samples_per_unit != 8) in CanConvert()
H A DAudioTypePcm.cc44 hdr.samples_per_unit = 1; in AudioTypePcm()
54 if (h.samples_per_unit != 1) in CanConvert()
232 (inhdr.samples_per_unit != outhdr.samples_per_unit) || in Convert()
233 (inhdr.samples_per_unit != 1) || in Convert()
H A DAudioUnixfile.cc139 hdr_local.samples_per_unit = ohdr.samples_per_unit; in decode_filehdr()
207 ohdr.samples_per_unit = hdr_local.samples_per_unit; in encode_filehdr()
H A DAudioTypeChannel.cc94 (inhdr.samples_per_unit != outhdr.samples_per_unit) || in Convert()
H A DAudioTypeMux.cc99 (inhdr.samples_per_unit != outhdr.samples_per_unit) || in Convert()
H A Ddevice_ctl.c118 hdrp->samples_per_unit = 1; in audio__setplayhdr()
/illumos-gate/usr/src/cmd/audio/include/
H A DAudioHdr.h122 unsigned int samples_per_unit; // samples per unit variable
129 sample_rate(0), samples_per_unit(0), bytes_per_unit(0), in AudioHdr()
139 samples_per_unit(hdr.samples_per_unit), in AudioHdr()
189 hdr.samples_per_unit = samples_per_unit; in Audio_hdr()
201 (samples_per_unit == tst.samples_per_unit) &&
H A Daudio_hdr.h90 unsigned samples_per_unit; /* samples per unit */ member
/illumos-gate/usr/src/cmd/audio/audioconvert/
H A Dparse.cc114 hdr.samples_per_unit = 1; in audioformat_parse()
120 hdr.samples_per_unit = 1; in audioformat_parse()
126 hdr.samples_per_unit = 1; in audioformat_parse()
H A Dconvert.cc275 ihdr.samples_per_unit = 1; in add_pcm_convert()
376 ihdr.samples_per_unit = 2; in add_compress()
380 ihdr.samples_per_unit = 8; in add_compress()
437 ihdr.samples_per_unit = 1; in add_decompress()
525 if (hdr.samples_per_unit != 1) in pcmtype()
541 (ihp.samples_per_unit != \
542 ohp.samples_per_unit) || \
H A Dmain.cc393 hdr.samples_per_unit = 0; in init_header()
/illumos-gate/usr/src/cmd/audio/audioplay/
H A Daudioplay.c434 (File_hdr.samples_per_unit == 2) && in main()
438 File_hdr.samples_per_unit = 1; in main()
446 (File_hdr.samples_per_unit == 8) && in main()
450 File_hdr.samples_per_unit = 1; in main()