Searched refs:inhdr (Results 1 – 6 of 6) sorted by relevance
72 AudioHdr inhdr; in Convert() local88 inhdr = inbuf->GetHeader(); in Convert()92 if ((err = inhdr.Validate())) in Convert()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()107 newhdr = inhdr; in Convert()[all …]
72 AudioHdr inhdr; in Convert() local88 inhdr = inbuf->GetHeader(); // Demux multi-channel data in Convert()92 inhdr = multibuf[0]->GetHeader(); in Convert()97 if ((err = inhdr.Validate())) 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()[all …]
101 AudioHdr inhdr; in Convert() local111 inhdr = inbuf->GetHeader(); in Convert()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()150 nbytes = (size_t)inhdr.Time_to_Bytes(length); in Convert()154 switch (inhdr.encoding) { in Convert()[all …]
244 AudioHdr inhdr; in process_dcfilter() local248 inhdr = inbuf->GetHeader(); in process_dcfilter()250 frames = (size_t)inhdr.Time_to_Samples(inbuf->GetLength()); in process_dcfilter()255 timeconstant = 1. / (inhdr.sample_rate / (double)DCfreq); in process_dcfilter()261 for (i = 0; i < frames; i++, inptr += inhdr.channels) { in process_dcfilter()296 AudioHdr inhdr; in process_instant() local300 inhdr = inbuf->GetHeader(); in process_instant()302 frames = (size_t)inhdr.Time_to_Samples(inbuf->GetLength()); in process_instant()308 for (i = 0; i < frames; i++, inptr += inhdr.channels) { in process_instant()344 AudioHdr inhdr; in process_weighted() local[all …]
215 AudioHdr inhdr; in Convert() local222 inhdr = inbuf->GetHeader(); in Convert()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()235 (inhdr.samples_per_unit != 1) || in Convert()236 (inhdr.channels != outhdr.channels)) in Convert()242 (outhdr.bytes_per_unit <= inhdr.bytes_per_unit)) { in Convert()258 frames = (size_t)inhdr.Time_to_Samples(length) in Convert()259 * inhdr.channels; in Convert()[all …]
79 AudioHdr inhdr; in Convert() local86 inhdr = inbuf->GetHeader(); in Convert()95 if ((err = inhdr.Validate()) || (err = outhdr.Validate())) { in Convert()102 if ((inhdr.sample_rate != input_rate) || in Convert()108 if (inhdr.sample_rate == outhdr.sample_rate) { in Convert()