Lines Matching refs:total_read
765 size_t total_read = 0; in ReadAudioData() local
772 if (avail_to_read > len - total_read) { in ReadAudioData()
773 avail_to_read = len - total_read; in ReadAudioData()
775 if (mDataMQ->read(p_buf + total_read, avail_to_read) == 0) { in ReadAudioData()
777 << " total_read=" << total_read << " failed"; in ReadAudioData()
780 total_read += avail_to_read; in ReadAudioData()
787 LOG(WARNING) << __func__ << ": " << (len - total_read) << "/" << len in ReadAudioData()
792 } while (total_read < len); in ReadAudioData()
797 VLOG(1) << __func__ << ": underflow " << len << " -> " << total_read in ReadAudioData()
800 VLOG(2) << __func__ << ": " << len << " -> " << total_read << " read"; in ReadAudioData()
803 sink_->LogBytesRead(total_read); in ReadAudioData()
804 return total_read; in ReadAudioData()