Lines Matching refs:frame_count
85 buffer->frame_count = 0; in echo_reference_get_next_buffer()
89 buffer->frame_count = (buffer->frame_count > er->wr_frames_in) ? in echo_reference_get_next_buffer()
90 er->wr_frames_in : buffer->frame_count; in echo_reference_get_next_buffer()
110 er->wr_frames_in -= buffer->frame_count; in echo_reference_release_buffer()
153 ALOGV("echo_reference_write() START trying to write %zu frames", buffer->frame_count); in echo_reference_write()
184 er->wr_curr_frame_size = buffer->frame_count; in echo_reference_write()
191 size_t wrBufSize = buffer->frame_count; in echo_reference_write()
193 inFrames = buffer->frame_count; in echo_reference_write()
196 inFrames = (buffer->frame_count * er->rd_sampling_rate) / er->wr_sampling_rate + in echo_reference_write()
216 size_t frames = buffer->frame_count; in echo_reference_write()
249 er->wr_frames_in = buffer->frame_count; in echo_reference_write()
262 inFrames = buffer->frame_count; in echo_reference_write()
315 buffer->delay_ns, er->frames_in, buffer->frame_count); in echo_reference_read()
324 memset(buffer->raw, 0, er->rd_frame_size * buffer->frame_count); in echo_reference_read()
332 if (er->frames_in < buffer->frame_count) { in echo_reference_read()
333 uint32_t timeoutMs = (uint32_t)((1000 * buffer->frame_count) / er->rd_sampling_rate / 2); in echo_reference_read()
347 ALOGV_IF((er->frames_in < buffer->frame_count), in echo_reference_read()
350 timeoutMs, er->frames_in, buffer->frame_count); in echo_reference_read()
451 if (er->frames_in < buffer->frame_count) { in echo_reference_read()
452 if (buffer->frame_count > er->buf_size) { in echo_reference_read()
453 er->buf_size = buffer->frame_count; in echo_reference_read()
459 0, (buffer->frame_count - er->frames_in) * er->rd_frame_size); in echo_reference_read()
460 er->frames_in = buffer->frame_count; in echo_reference_read()
465 buffer->frame_count * er->rd_frame_size); in echo_reference_read()
467 er->frames_in -= buffer->frame_count; in echo_reference_read()
469 (char *)er->buffer + buffer->frame_count * er->rd_frame_size, in echo_reference_read()
476 buffer->frame_count, er->frames_in); in echo_reference_read()