Searched refs:inhdr (Results 1 – 6 of 6) sorted by relevance
70 AudioHdr inhdr; in Convert() local86 inhdr = inbuf->GetHeader(); in Convert()90 if ((err = inhdr.Validate())) in Convert()92 if ((inhdr.sample_rate != outhdr.sample_rate) || in Convert()93 (inhdr.encoding != outhdr.encoding) || in Convert()94 (inhdr.samples_per_unit != outhdr.samples_per_unit) || in Convert()95 (inhdr.bytes_per_unit != outhdr.bytes_per_unit)) in Convert()97 if (inhdr.channels == outhdr.channels) in Convert()99 if ((inhdr.channels != 1) && (outhdr.channels != 1)) in Convert()105 newhdr = inhdr; in Convert()[all …]
70 AudioHdr inhdr; in Convert() local86 inhdr = inbuf->GetHeader(); // Demux multi-channel data in Convert()90 inhdr = multibuf[0]->GetHeader(); in Convert()95 if ((err = inhdr.Validate())) in Convert()97 if ((inhdr.sample_rate != outhdr.sample_rate) || in Convert()98 (inhdr.encoding != outhdr.encoding) || in Convert()99 (inhdr.samples_per_unit != outhdr.samples_per_unit) || in Convert()100 (inhdr.bytes_per_unit != outhdr.bytes_per_unit)) in Convert()102 if (inhdr.channels == outhdr.channels) in Convert()104 if ((inhdr.channels != 1) && (outhdr.channels != 1)) in Convert()[all …]
99 AudioHdr inhdr; in Convert() local109 inhdr = inbuf->GetHeader(); in Convert()117 if ((err = inhdr.Validate()) || (err = outhdr.Validate())) { in Convert()121 if (!CanConvert(inhdr) || !CanConvert(outhdr) || in Convert()122 (inhdr.sample_rate != outhdr.sample_rate) || in Convert()123 (inhdr.channels != outhdr.channels)) in Convert()127 if ((inhdr.encoding == outhdr.encoding) && in Convert()128 (inhdr.bytes_per_unit == outhdr.bytes_per_unit)) { in Convert()149 nbytes = (size_t)inhdr.Time_to_Bytes(length); in Convert()153 switch (inhdr.encoding) { in Convert()[all …]
242 AudioHdr inhdr; in process_dcfilter() local246 inhdr = inbuf->GetHeader(); in process_dcfilter()248 frames = (size_t)inhdr.Time_to_Samples(inbuf->GetLength()); in process_dcfilter()253 timeconstant = 1. / (inhdr.sample_rate / (double)DCfreq); in process_dcfilter()259 for (i = 0; i < frames; i++, inptr += inhdr.channels) { in process_dcfilter()294 AudioHdr inhdr; in process_instant() local298 inhdr = inbuf->GetHeader(); in process_instant()300 frames = (size_t)inhdr.Time_to_Samples(inbuf->GetLength()); in process_instant()306 for (i = 0; i < frames; i++, inptr += inhdr.channels) { in process_instant()342 AudioHdr inhdr; in process_weighted() local[all …]
213 AudioHdr inhdr; in Convert() local220 inhdr = inbuf->GetHeader(); in Convert()229 if ((err = inhdr.Validate()) || (err = outhdr.Validate())) in Convert()231 if ((inhdr.sample_rate != outhdr.sample_rate) || in Convert()232 (inhdr.samples_per_unit != outhdr.samples_per_unit) || in Convert()233 (inhdr.samples_per_unit != 1) || in Convert()234 (inhdr.channels != outhdr.channels)) in Convert()240 (outhdr.bytes_per_unit <= inhdr.bytes_per_unit)) { in Convert()257 frames = (size_t)inhdr.Time_to_Samples(length) in Convert()258 * inhdr.channels; in Convert()[all …]
79 AudioHdr inhdr; in Convert() local88 inhdr = inbuf->GetHeader(); in Convert()97 if ((err = inhdr.Validate()) || (err = outhdr.Validate())) { in Convert()104 if ((inhdr.sample_rate != input_rate) || in Convert()110 if (inhdr.sample_rate == outhdr.sample_rate) { in Convert()