reimplemented reversing and shuttling in new audio

This commit is contained in:
itsmattkc
2021-09-26 14:22:50 -07:00
parent 6f3f7e558b
commit db873dfc69
8 changed files with 95 additions and 104 deletions
+2 -3
View File
@@ -94,7 +94,7 @@ void AudioManager::PushToOutput(const QByteArray &samples)
emit OutputPushed(samples);
}
void AudioManager::StartOutput(std::shared_ptr<QIODevice> device, int playback_speed)
void AudioManager::StartOutput(std::shared_ptr<QIODevice> device)
{
// Move to output manager's thread
device->moveToThread(&output_thread_);
@@ -103,8 +103,7 @@ void AudioManager::StartOutput(std::shared_ptr<QIODevice> device, int playback_s
QMetaObject::invokeMethod(output_manager_,
"PullFromDevice",
Qt::QueuedConnection,
Q_ARG(std::shared_ptr<QIODevice>, device),
Q_ARG(int, playback_speed));
Q_ARG(std::shared_ptr<QIODevice>, device));
}
void AudioManager::StopOutput()