implemented maintaining audio pitch and reversing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user