Use backticks not vertical bars to denote variables in comments for /modules/audio_coding
Bug: webrtc:12338 Change-Id: I02613d9fca45d00e2477f334b7a0416e7912e26b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/227037 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34621}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
0146a34b3f
commit
d00ce747c7
@ -59,11 +59,11 @@ void SyncBuffer::InsertZerosAtIndex(size_t length, size_t position) {
|
||||
channels_[channel]->InsertZerosAt(length, position);
|
||||
}
|
||||
if (next_index_ >= position) {
|
||||
// We are moving the |next_index_| sample.
|
||||
// We are moving the `next_index_` sample.
|
||||
set_next_index(next_index_ + length); // Overflow handled by subfunction.
|
||||
}
|
||||
if (dtmf_index_ > 0 && dtmf_index_ >= position) {
|
||||
// We are moving the |dtmf_index_| sample.
|
||||
// We are moving the `dtmf_index_` sample.
|
||||
set_dtmf_index(dtmf_index_ + length); // Overflow handled by subfunction.
|
||||
}
|
||||
}
|
||||
@ -71,7 +71,7 @@ void SyncBuffer::InsertZerosAtIndex(size_t length, size_t position) {
|
||||
void SyncBuffer::ReplaceAtIndex(const AudioMultiVector& insert_this,
|
||||
size_t length,
|
||||
size_t position) {
|
||||
position = std::min(position, Size()); // Cap |position| in the valid range.
|
||||
position = std::min(position, Size()); // Cap `position` in the valid range.
|
||||
length = std::min(length, Size() - position);
|
||||
AudioMultiVector::OverwriteAt(insert_this, length, position);
|
||||
}
|
||||
@ -106,12 +106,12 @@ void SyncBuffer::Flush() {
|
||||
}
|
||||
|
||||
void SyncBuffer::set_next_index(size_t value) {
|
||||
// Cannot set |next_index_| larger than the size of the buffer.
|
||||
// Cannot set `next_index_` larger than the size of the buffer.
|
||||
next_index_ = std::min(value, Size());
|
||||
}
|
||||
|
||||
void SyncBuffer::set_dtmf_index(size_t value) {
|
||||
// Cannot set |dtmf_index_| larger than the size of the buffer.
|
||||
// Cannot set `dtmf_index_` larger than the size of the buffer.
|
||||
dtmf_index_ = std::min(value, Size());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user