Home
last modified time | relevance | path

Searched refs:outhdr (Results 1 – 11 of 11) sorted by relevance

/titanic_44/usr/src/cmd/audio/utilities/
H A DAudioTypeG72X.cc98 AudioHdr outhdr) // target header in Convert() argument
119 if ((err = inhdr.Validate()) || (err = outhdr.Validate())) { in Convert()
123 if (!CanConvert(inhdr) || !CanConvert(outhdr) || in Convert()
124 (inhdr.sample_rate != outhdr.sample_rate) || in Convert()
125 (inhdr.channels != outhdr.channels)) in Convert()
129 if ((inhdr.encoding == outhdr.encoding) && in Convert()
130 (inhdr.bytes_per_unit == outhdr.bytes_per_unit)) { in Convert()
135 pad = outhdr.Samples_to_Time( in Convert()
136 4 * outhdr.bytes_per_unit * outhdr.channels); in Convert()
142 if (err = outbuf->SetHeader(outhdr)) { in Convert()
[all …]
H A DAudioTypePcm.cc212 AudioHdr outhdr) // target header in Convert() argument
231 if ((err = inhdr.Validate()) || (err = outhdr.Validate())) in Convert()
233 if ((inhdr.sample_rate != outhdr.sample_rate) || in Convert()
234 (inhdr.samples_per_unit != outhdr.samples_per_unit) || in Convert()
236 (inhdr.channels != outhdr.channels)) in Convert()
242 (outhdr.bytes_per_unit <= inhdr.bytes_per_unit)) { in Convert()
249 if (err = outbuf->SetHeader(outhdr)) { in Convert()
280 switch (outhdr.encoding) { in Convert()
284 switch (outhdr.bytes_per_unit) { in Convert()
292 switch (outhdr.bytes_per_unit) { in Convert()
[all …]
H A DAudioTypeMux.cc68 AudioHdr outhdr) // target header in Convert() argument
86 channels = outhdr.channels; in Convert()
99 if ((inhdr.sample_rate != outhdr.sample_rate) || in Convert()
100 (inhdr.encoding != outhdr.encoding) || in Convert()
101 (inhdr.samples_per_unit != outhdr.samples_per_unit) || in Convert()
102 (inhdr.bytes_per_unit != outhdr.bytes_per_unit)) in Convert()
104 if (inhdr.channels == outhdr.channels) in Convert()
106 if ((inhdr.channels != 1) && (outhdr.channels != 1)) in Convert()
131 if (err = multibuf[i]->SetHeader(outhdr)) { in Convert()
174 if (err = outbuf->SetHeader(outhdr)) { in Convert()
[all …]
H A DAudioTypeChannel.cc69 AudioHdr outhdr) // target header in Convert() argument
94 if ((inhdr.sample_rate != outhdr.sample_rate) || in Convert()
95 (inhdr.encoding != outhdr.encoding) || in Convert()
96 (inhdr.samples_per_unit != outhdr.samples_per_unit) || in Convert()
97 (inhdr.bytes_per_unit != outhdr.bytes_per_unit)) in Convert()
99 if (inhdr.channels == outhdr.channels) in Convert()
101 if ((inhdr.channels != 1) && (outhdr.channels != 1)) in Convert()
108 newhdr.channels = outhdr.channels; in Convert()
H A DAudioTypeSampleRate.cc76 AudioHdr outhdr) // target header in Convert() argument
95 if ((err = inhdr.Validate()) || (err = outhdr.Validate())) { in Convert()
103 (outhdr.sample_rate != output_rate)) { in Convert()
108 if (inhdr.sample_rate == outhdr.sample_rate) { in Convert()
114 inbuf->SetHeader(outhdr); in Convert()
120 length += outhdr.Samples_to_Time(i); in Convert()
126 if (err = outbuf->SetHeader(outhdr)) { in Convert()
/titanic_44/usr/src/cmd/audio/include/
H A DAudioTypeChannel.h61 AudioHdr outhdr); // target header
H A DAudioTypeMux.h59 AudioHdr outhdr); // target header
H A DAudioTypeConvert.h62 AudioHdr outhdr) = 0; // target header
H A DAudioTypeG72X.h64 AudioHdr outhdr); // target header
H A DAudioTypeSampleRate.h63 AudioHdr outhdr); // target header
H A DAudioTypePcm.h115 AudioHdr outhdr); // target header