Lines Matching refs:bytes
300 size_t bytes = info->bytes; in write_to_reference_fifo() local
303 ssize_t written_bytes = fifo_write(aec->spk_fifo, buffer, bytes); in write_to_reference_fifo()
304 if (written_bytes != bytes) { in write_to_reference_fifo()
305 ALOGE("Could only write %zu of %zu bytes", written_bytes, bytes); in write_to_reference_fifo()
310 info->bytes = written_bytes; in write_to_reference_fifo()
328 spk_time_offset = (aec->last_spk_info.bytes + aec->read_write_diff_bytes) * usec_per_byte; in get_spk_timestamp()
340 aec->read_write_diff_bytes -= aec->last_spk_info.bytes; in get_spk_timestamp()
359 spk_info.bytes, aec->read_write_diff_bytes, timespec_to_usec(spk_info.timestamp)); in get_spk_timestamp()
360 aec->read_write_diff_bytes -= spk_info.bytes; in get_spk_timestamp()
373 size_t bytes = info->bytes; in get_reference_samples() local
374 const size_t frames = bytes / aec->mic_frame_size_bytes; in get_reference_samples()
435 info->bytes = bytes; in get_reference_samples()
580 size_t bytes = info->bytes; in process_aec() local
583 size_t in_frames = bytes / frame_size; in process_aec()
586 memcpy(aec->mic_buf, buffer, bytes); in process_aec()
619 spk_info.bytes = bytes; in process_aec()
658 memcpy(buffer, aec->mic_buf, bytes); in process_aec()
669 fwrite((char *)aec->mic_buf, 1, bytes, fp_in); in process_aec()
676 fwrite((char *)buffer, 1, bytes, fp_out); in process_aec()