audiomonitor: use samplebuffer directly

Pushing bytes was broken and pretty much pointless anyway, this should be faster and easier to use too
This commit is contained in:
itsmattkc
2022-05-06 09:36:06 -07:00
parent ef046d5ed6
commit 180be5fe46
3 changed files with 27 additions and 53 deletions
+1 -1
View File
@@ -571,7 +571,7 @@ void ViewerWidget::ReceivedAudioBufferForScrubbing()
if (!AudioManager::instance()->PushToOutput(audio_processor_.to(), packed, &error)) {
Core::instance()->ShowStatusBarMessage(tr("Audio scrubbing failed: %1").arg(error));
}
AudioMonitor::PushBytesOnAll(packed);
AudioMonitor::PushSampleBufferOnAll(samples);
}
} else {
qCritical() << "Failed to process audio for scrubbing:" << r;