Skip to content

Commit 07ae086

Browse files
committed
Correct misspelled overflow
1 parent 3abb913 commit 07ae086

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/AudioTools/CoreAudio/AudioEffects/PitchShift.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class VariableSpeedRingBufferSimple : public BaseBuffer<T> {
4848
T read() {
4949
T result = peek();
5050
read_pos_float += read_increment;
51-
// on buffer owerflow reset to beginning
51+
// on buffer overflow reset to beginning
5252
if (read_pos_float > buffer_size) {
5353
read_pos_float -= buffer_size;
5454
}
@@ -69,7 +69,7 @@ class VariableSpeedRingBufferSimple : public BaseBuffer<T> {
6969
return false;
7070
}
7171
buffer[write_pos++] = sample;
72-
// on buffer owerflow reset to 0
72+
// on buffer overflow reset to 0
7373
if (write_pos >= buffer_size) {
7474
write_pos = 0;
7575
}
@@ -132,7 +132,7 @@ template <typename T> class VariableSpeedRingBuffer180 : public BaseBuffer<T> {
132132
// write_pointer value is used in pitchRead()
133133
write_pointer = write_pos;
134134
buffer[write_pos++] = sample;
135-
// on buffer owerflow reset to 0
135+
// on buffer overflow reset to 0
136136
if (write_pos >= buffer_size) {
137137
write_pos = 0;
138138
}
@@ -259,7 +259,7 @@ template <typename T> class VariableSpeedRingBuffer : public BaseBuffer<T> {
259259
return false;
260260
handleReadWriteOverrun(last_value);
261261
buffer[write_pos++] = sample;
262-
// on buffer owerflow reset to 0
262+
// on buffer overflow reset to 0
263263
if (write_pos >= buffer_size) {
264264
write_pos = 0;
265265
}

src/AudioTools/CoreAudio/AudioHttp/HttpLineReader.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class HttpLineReader {
3232
}
3333

3434
// process characters until we find a new line
35-
bool is_buffer_owerflow = false;
35+
bool is_buffer_overflow = false;
3636
int j = 0;
3737
while (true) {
3838
int c = client.read();
@@ -43,7 +43,7 @@ class HttpLineReader {
4343
if (j < len) {
4444
result++;
4545
} else {
46-
is_buffer_owerflow = true;
46+
is_buffer_overflow = true;
4747
}
4848

4949
if (c == '\n') {
@@ -65,13 +65,13 @@ class HttpLineReader {
6565
}
6666
}
6767
}
68-
if (!is_buffer_owerflow) {
68+
if (!is_buffer_overflow) {
6969
str[j] = c;
7070
}
7171
j++;
7272
}
7373
str[result - 1] = 0;
74-
if (is_buffer_owerflow) {
74+
if (is_buffer_overflow) {
7575
LOGE("Line cut off: %s", str);
7676
}
7777

0 commit comments

Comments
 (0)