• Home
  • Raw
  • Download

Lines Matching refs:frames

51                                     uint64_t* frames = nullptr,  in out_calculate_feeding_delay_ms()  argument
53 if (latency_ms == nullptr && frames == nullptr && timestamp == nullptr) { in out_calculate_feeding_delay_ms()
105 if (frames != nullptr) { in out_calculate_feeding_delay_ms()
107 *frames = absorbed_bytes / audio_stream_out_frame_size(&out->stream_out_); in out_calculate_feeding_delay_ms()
108 if (out->frames_presented_ < *frames) { in out_calculate_feeding_delay_ms()
110 *frames = out->frames_presented_; in out_calculate_feeding_delay_ms()
111 } else if ((out->frames_presented_ - *frames) > latency_frames) { in out_calculate_feeding_delay_ms()
114 *frames = out->frames_presented_; in out_calculate_feeding_delay_ms()
119 if (*frames > latency_frames) { in out_calculate_feeding_delay_ms()
120 *frames -= latency_frames; in out_calculate_feeding_delay_ms()
122 *frames = 0; in out_calculate_feeding_delay_ms()
131 int64_t* frames, int64_t* time) { in in_calculate_starving_delay_ms() argument
147 *frames = dispersed_bytes / audio_stream_in_frame_size(&in->stream_in_); in in_calculate_starving_delay_ms()
155 if (in->frames_presented_ < *frames) { in in_calculate_starving_delay_ms()
157 *frames = in->frames_presented_; in in_calculate_starving_delay_ms()
158 } else if ((in->frames_presented_ - *frames) > latency_frames) { in in_calculate_starving_delay_ms()
161 *frames = in->frames_presented_; in in_calculate_starving_delay_ms()
166 if (*frames > latency_frames) { in in_calculate_starving_delay_ms()
167 *frames -= latency_frames; in in_calculate_starving_delay_ms()
169 *frames = 0; in in_calculate_starving_delay_ms()
521 const size_t frames = bytes / audio_stream_out_frame_size(stream); in out_write() local
522 out->frames_rendered_ += frames; in out_write()
523 out->frames_presented_ += frames; in out_write()
654 uint64_t* frames, in out_get_presentation_position() argument
656 if (frames == nullptr || timestamp == nullptr) { in out_get_presentation_position()
661 out_calculate_feeding_delay_ms(out, nullptr, frames, timestamp); in out_get_presentation_position()
663 << ", frames=" << *frames << ", timestamp=" << timestamp->tv_sec in out_get_presentation_position()
1038 const size_t frames = totalRead / audio_stream_in_frame_size(stream); in in_read() local
1039 in->frames_presented_ += frames; in in_read()
1053 int64_t* frames, int64_t* time) { in in_get_capture_position() argument
1054 if (stream == NULL || frames == NULL || time == NULL) { in in_get_capture_position()
1064 in_calculate_starving_delay_ms(in, frames, time); in in_get_capture_position()