Resize circular buffer on overflow (#422)

This commit is contained in:
Fangjun Kuang
2023-11-13 12:07:51 +08:00
committed by GitHub
parent 9884cf71e7
commit 097d641869
5 changed files with 94 additions and 10 deletions

View File

@@ -47,6 +47,8 @@ class CircularBuffer {
tail_ = 0;
}
void Resize(int32_t new_capacity);
private:
std::vector<float> buffer_;