Qt: Add audio dumping options

This commit is contained in:
Connor McLaughlin
2020-03-15 22:04:32 +10:00
parent c4af353d54
commit fe2e6561d3
6 changed files with 50 additions and 2 deletions

View File

@ -566,6 +566,28 @@ void QtHostInterface::saveState(bool global, qint32 slot, bool block_until_done
SaveState(global, slot);
}
void QtHostInterface::startDumpingAudio()
{
if (!isOnWorkerThread())
{
QMetaObject::invokeMethod(this, "startDumpingAudio");
return;
}
StartDumpingAudio();
}
void QtHostInterface::stopDumpingAudio()
{
if (!isOnWorkerThread())
{
QMetaObject::invokeMethod(this, "stopDumpingAudio");
return;
}
StopDumpingAudio();
}
void QtHostInterface::enableBackgroundControllerPolling()
{
if (!isOnWorkerThread())