mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-14 20:31:53 -05:00
Fixed audio output management by deleting the QAudioOutput when it is not used anymore
This commit is contained in:
parent
1b086348e6
commit
afffc2cda8
@ -113,6 +113,8 @@ bool AudioOutput::start(int device, int rate)
|
||||
|
||||
void AudioOutput::stop()
|
||||
{
|
||||
qDebug("AudioOutput::stop");
|
||||
|
||||
QMutexLocker mutexLocker(&m_mutex);
|
||||
|
||||
if (m_audioUsageCount > 0)
|
||||
@ -122,7 +124,7 @@ void AudioOutput::stop()
|
||||
if (m_audioUsageCount == 0)
|
||||
{
|
||||
QIODevice::close();
|
||||
// delete m_audioOutput;
|
||||
delete m_audioOutput;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user