implement audio device to pull directly from renderer

This commit is contained in:
itsmattkc
2021-09-25 12:44:58 -07:00
parent 35873dce01
commit 4c9863a696
14 changed files with 336 additions and 145 deletions
+2 -2
View File
@@ -90,7 +90,7 @@ void AudioOutputManager::Close()
}
}
void AudioOutputManager::PullFromDevice(QIODevice *device, qint64 offset, int playback_speed)
void AudioOutputManager::PullFromDevice(QIODevice *device, int playback_speed)
{
if (!output_) {
return;
@@ -102,7 +102,7 @@ void AudioOutputManager::PullFromDevice(QIODevice *device, qint64 offset, int pl
push_samples_.clear();
// Pull from the device
device_proxy_.SetDevice(device, offset, playback_speed);
device_proxy_.SetDevice(device, playback_speed);
device_proxy_.open(QIODevice::ReadOnly);
output_->start(&device_proxy_);
}