Tests for handling of final flag

This commit is contained in:
Chris Cannam
2023-02-21 10:28:57 +00:00
parent d5dd0e573a
commit 4b4c50b479
3 changed files with 107 additions and 26 deletions

View File

@@ -697,6 +697,7 @@ R3Stretcher::process(const float *const *input, size_t samples, bool final)
// haven't yet delivered all the samples" because the
// distinction is meaningless internally - it only affects
// whether available() finds any samples in the buffer
m_log.log(1, "final is set, entering Finished mode");
m_mode = ProcessMode::Finished;
} else {
m_mode = ProcessMode::Processing;