• Home
  • Raw
  • Download

Lines Matching refs:frames_in

52     size_t frames_in;               // number of frames in main buffer  member
119 er->frames_in = 0; in echo_reference_reset_l()
272 if (er->frames_in + inFrames > er->buf_size) { in echo_reference_write()
274 er->buf_size, er->frames_in + inFrames); in echo_reference_write()
275 er->buf_size = er->frames_in + inFrames; in echo_reference_write()
284 memcpy((char *)er->buffer + er->frames_in * er->rd_frame_size, in echo_reference_write()
287 er->frames_in += inFrames; in echo_reference_write()
291 inFrames, er->frames_in, er->buf_size, in echo_reference_write()
328 buffer->delay_ns, er->frames_in, buffer->frame_count); in echo_reference_read()
345 if (er->frames_in < buffer->frame_count) { in echo_reference_read()
360 ALOGV_IF((er->frames_in < buffer->frame_count), in echo_reference_read()
363 timeoutMs, er->frames_in, buffer->frame_count); in echo_reference_read()
398 int64_t delayNs = ((int64_t)er->frames_in * 1000000000) / er->rd_sampling_rate; in echo_reference_read()
417 size_t previousFrameIn = er->frames_in; in echo_reference_read()
418 er->frames_in = (size_t)((expectedDelayNs * er->rd_sampling_rate)/1000000000); in echo_reference_read()
419 int offset = er->frames_in - previousFrameIn; in echo_reference_read()
423 delay_sign ? "positive" : "negative", er->frames_in, previousFrameIn); in echo_reference_read()
427 if (er->frames_in > er->buf_size) { in echo_reference_read()
428 er->buf_size = er->frames_in; in echo_reference_read()
450 er->frames_in * er->rd_frame_size); in echo_reference_read()
452 er->frames_in); in echo_reference_read()
470 if (er->frames_in < buffer->frame_count) { in echo_reference_read()
483 memset((char *)er->buffer + er->frames_in * er->rd_frame_size, in echo_reference_read()
484 0, (buffer->frame_count - er->frames_in) * er->rd_frame_size); in echo_reference_read()
485 er->frames_in = buffer->frame_count; in echo_reference_read()
492 er->frames_in -= buffer->frame_count; in echo_reference_read()
495 er->frames_in * er->rd_frame_size); in echo_reference_read()
501 buffer->frame_count, er->frames_in); in echo_reference_read()