always close pull audio device when we're doing with it

This commit is contained in:
itsmattkc
2020-01-03 21:11:47 +11:00
parent 55135114b9
commit e671fb63b7
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -18,6 +18,13 @@ void AudioOutputDeviceProxy::SetSendAverages(bool send)
send_averages_ = send;
}
void AudioOutputDeviceProxy::close()
{
QIODevice::close();
device_->close();
}
qint64 AudioOutputDeviceProxy::readData(char *data, qint64 maxlen)
{
if (device_) {
+2
View File
@@ -13,6 +13,8 @@ public:
void SetSendAverages(bool send);
virtual void close() override;
signals:
void ProcessedAverages(QVector<double> averages);