mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-12-24 22:56:42 +00:00
Also reset read cursor and overran status on audio.clear()
This commit is contained in:
parent
d3ca9a2eda
commit
15b2f9bb08
@ -128,6 +128,8 @@ bool audio_async::clear() {
|
|||||||
|
|
||||||
m_audio_pos = 0;
|
m_audio_pos = 0;
|
||||||
m_audio_len = 0;
|
m_audio_len = 0;
|
||||||
|
m_audio_read_cursor = -1;
|
||||||
|
overran_flag = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user