implemented maintaining audio pitch and reversing

This commit is contained in:
itsmattkc
2022-02-01 13:39:43 -08:00
parent efa74c72a8
commit 019b3cfe29
12 changed files with 361 additions and 112 deletions
+2 -5
View File
@@ -466,11 +466,8 @@ void ViewerWidget::ReceivedAudioBufferForPlayback()
// If the tempo must be adjusted, adjust now
if (tempo_processor_.IsOpen()) {
tempo_processor_.Push(pack.data(), pack.size());
int actual = tempo_processor_.Pull(pack.data(), pack.size());
if (actual != pack.size()) {
pack.resize(actual);
}
tempo_processor_.Push(pack);
pack = tempo_processor_.Pull();
}
// TempoProcessor may have emptied the array