Lines Matching refs:sync_buffer_

332       sync_buffer_->FutureLength();  in CurrentDelayMs()
350 packet_buffer_samples + sync_buffer_->FutureLength(); in FilteredCurrentDelayMs()
377 sync_buffer_->FutureLength(); in NetworkStatistics()
479 assert(sync_buffer_.get()); in FlushBuffers()
481 sync_buffer_->Flush(); in FlushBuffers()
482 sync_buffer_->set_next_index(sync_buffer_->next_index() - in FlushBuffers()
527 return rtc::dchecked_cast<int>(sync_buffer_->FutureLength() / in SyncBufferSizeMs()
533 return sync_buffer_.get(); in sync_buffer_for_test()
599 sync_buffer_->IncreaseEndTimestamp(main_timestamp - timestamp_); in InsertPacketInternal()
851 audio_frame->num_channels_ = sync_buffer_->Channels(); in GetAudioInternal()
944 sync_buffer_->IncreaseEndTimestamp( in GetAudioInternal()
955 *sync_buffer_, sync_buffer_->Size() - output_size_samples_); in GetAudioInternal()
976 sync_buffer_->PushBack(*algorithm_buffer_); in GetAudioInternal()
980 size_t num_output_samples = output_size_samples_ * sync_buffer_->Channels(); in GetAudioInternal()
985 << sync_buffer_->Channels(); in GetAudioInternal()
988 AudioFrame::kMaxDataSizeSamples / sync_buffer_->Channels(); in GetAudioInternal()
990 sync_buffer_->GetNextAudioInterleaved(num_output_samples_per_channel, in GetAudioInternal()
993 if (sync_buffer_->FutureLength() < expand_->overlap_length()) { in GetAudioInternal()
998 expand_->overlap_length() - sync_buffer_->FutureLength(); in GetAudioInternal()
999 RTC_DCHECK_GE(sync_buffer_->next_index(), missing_lookahead_samples); in GetAudioInternal()
1000 sync_buffer_->set_next_index(sync_buffer_->next_index() - in GetAudioInternal()
1014 RTC_DCHECK_GE(sync_buffer_->FutureLength(), expand_->overlap_length()); in GetAudioInternal()
1018 return_value = DtmfOverdub(dtmf_event, sync_buffer_->Channels(), in GetAudioInternal()
1030 background_noise_->Update(*sync_buffer_, *vad_.get()); in GetAudioInternal()
1036 sync_buffer_->set_dtmf_index(sync_buffer_->Size()); in GetAudioInternal()
1043 uint32_t temp_timestamp = sync_buffer_->end_timestamp() - in GetAudioInternal()
1044 static_cast<uint32_t>(sync_buffer_->FutureLength()); in GetAudioInternal()
1080 assert(sync_buffer_.get()); in GetDecision()
1081 uint32_t end_timestamp = sync_buffer_->end_timestamp(); in GetDecision()
1118 const int samples_left = static_cast<int>(sync_buffer_->FutureLength() - in GetDecision()
1138 assert(sync_buffer_.get()); in GetDecision()
1146 *sync_buffer_, *expand_, decoder_frame_length_, packet, last_mode_, in GetDecision()
1184 sync_buffer_->IncreaseEndTimestamp(timestamp_ - end_timestamp); in GetDecision()
1221 sync_buffer_->IncreaseEndTimestamp(timestamp_jump); in GetDecision()
1292 sync_buffer_->IncreaseEndTimestamp(packet->timestamp - end_timestamp); in GetDecision()
1373 sync_buffer_->set_end_timestamp(timestamp_); in Decode()
1410 sync_buffer_->IncreaseEndTimestamp( in Decode()
1431 (decoder && decoder->Channels() == sync_buffer_->Channels())); in Decode()
1432 sync_buffer_->IncreaseEndTimestamp( in Decode()
1433 *decoded_length / static_cast<int>(sync_buffer_->Channels())); in Decode()
1480 assert(sync_buffer_->Channels() == decoder->Channels()); in DecodeLoop()
1581 while ((sync_buffer_->FutureLength() - expand_->overlap_length()) < in DoExpand()
1603 sync_buffer_->PushBack(*algorithm_buffer_); in DoExpand()
1635 sync_buffer_->ReadInterleavedFromEnd(borrowed_samples_per_channel, in DoAccelerate()
1667 sync_buffer_->ReplaceAtIndex(*algorithm_buffer_, in DoAccelerate()
1668 sync_buffer_->Size() - in DoAccelerate()
1670 sync_buffer_->PushFrontZeros(borrowed_samples_per_channel - length); in DoAccelerate()
1674 sync_buffer_->ReplaceAtIndex(*algorithm_buffer_, in DoAccelerate()
1676 sync_buffer_->Size() - in DoAccelerate()
1709 (borrowed_samples_per_channel > sync_buffer_->FutureLength()) ? in DoPreemptiveExpand()
1710 (borrowed_samples_per_channel - sync_buffer_->FutureLength()) : 0; in DoPreemptiveExpand()
1714 sync_buffer_->ReadInterleavedFromEnd(borrowed_samples_per_channel, in DoPreemptiveExpand()
1743 sync_buffer_->ReplaceAtIndex( in DoPreemptiveExpand()
1745 sync_buffer_->Size() - borrowed_samples_per_channel); in DoPreemptiveExpand()
1872 sync_buffer_->IncreaseEndTimestamp( in DoDtmf()
1900 sync_buffer_->IncreaseEndTimestamp(static_cast<uint32_t>(length)); in DoAlternativePlc()
1910 if (sync_buffer_->dtmf_index() > sync_buffer_->next_index()) { in DtmfOverdub()
1913 sync_buffer_->dtmf_index() - sync_buffer_->next_index(), in DtmfOverdub()
2038 sync_buffer_.get(), &random_vector_, in UpdatePlcComponents()
2040 merge_.reset(new Merge(fs_hz, channels, expand_.get(), sync_buffer_.get())); in UpdatePlcComponents()
2075 sync_buffer_.reset(new SyncBuffer(channels, kSyncBufferSize * fs_mult_)); in SetSampleRateAndChannels()
2087 sync_buffer_->set_next_index(sync_buffer_->next_index() - in SetSampleRateAndChannels()
2099 sync_buffer_.get())); in SetSampleRateAndChannels()