Searched refs:avail_to_read (Results 1 – 2 of 2) sorted by relevance
563 size_t avail_to_read = data_mq_->availableToRead(); in ReadAudioData() local564 if (avail_to_read) { in ReadAudioData()565 if (avail_to_read > len - total_read) { in ReadAudioData()566 avail_to_read = len - total_read; in ReadAudioData()568 if (data_mq_->read((MqDataType*)p_buf + total_read, avail_to_read) == 0) { in ReadAudioData()572 total_read += avail_to_read; in ReadAudioData()
775 size_t avail_to_read = mDataMQ->availableToRead(); in ReadAudioData() local776 if (avail_to_read) { in ReadAudioData()777 if (avail_to_read > len - total_read) { in ReadAudioData()778 avail_to_read = len - total_read; in ReadAudioData()780 if (mDataMQ->read(p_buf + total_read, avail_to_read) == 0) { in ReadAudioData()784 total_read += avail_to_read; in ReadAudioData()