Lines Matching refs:frames_per_buffer
150 int frames_per_buffer = hardware_buffer_size;
156 frames_per_buffer = sample_rate / 100;
162 if (frames_per_buffer < 2 * frames_per_10ms) {
167 frames_per_buffer = 2 * frames_per_10ms;
172 DVLOG(1) << "Using sink output buffer size: " << frames_per_buffer;
173 return frames_per_buffer;
184 int frames_per_buffer)
197 frames_per_buffer,
202 ", session_id=%d, sample_rate=%d, frames_per_buffer=%d, effects=%i",
206 frames_per_buffer,
257 const int frames_per_buffer =
258 GetOptimalBufferSize(sample_rate, sink_params_.frames_per_buffer());
262 frames_per_buffer);
268 if (source_params.frames_per_buffer() != sink_params_.frames_per_buffer()) {
269 DVLOG(1) << "Rebuffering from " << source_params.frames_per_buffer()
270 << " to " << sink_params_.frames_per_buffer();
273 source_params.frames_per_buffer(),
278 if (sink_params_.frames_per_buffer() > source_params.frames_per_buffer()) {
281 fifo_delay_milliseconds_ = (sink_params_.frames_per_buffer() -
282 source_params.frames_per_buffer()) * frame_duration_milliseconds;