audio_core: Flush stream when not playing anything

This commit is contained in:
MerryMage 2018-09-12 18:07:16 +01:00
parent 55af5bda55
commit 957ddab679
6 changed files with 23 additions and 0 deletions

View file

@ -22,6 +22,10 @@ void TimeStretcher::Clear() {
m_sound_touch.clear();
}
void TimeStretcher::Flush() {
m_sound_touch.flush();
}
size_t TimeStretcher::Process(const s16* in, size_t num_in, s16* out, size_t num_out) {
const double time_delta = static_cast<double>(num_out) / m_sample_rate; // seconds