Audaspace: Always free up the CoreAudio resources
This commit is contained in:
committed by
Sebastian Parborg
parent
df733ea3a7
commit
b6a86a8fc9
@@ -250,14 +250,10 @@ CoreAudioDevice::~CoreAudioDevice()
|
|||||||
|
|
||||||
destroy();
|
destroy();
|
||||||
|
|
||||||
// NOTE: Keep the device open for buggy MacOS versions (see blender issue #121911).
|
CAClockDispose(m_clock_ref);
|
||||||
if(__builtin_available(macOS 15.2, *))
|
AudioOutputUnitStop(m_audio_unit);
|
||||||
{
|
AudioUnitUninitialize(m_audio_unit);
|
||||||
CAClockDispose(m_clock_ref);
|
AudioComponentInstanceDispose(m_audio_unit);
|
||||||
AudioOutputUnitStop(m_audio_unit);
|
|
||||||
AudioUnitUninitialize(m_audio_unit);
|
|
||||||
AudioComponentInstanceDispose(m_audio_unit);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CoreAudioDevice::seekSynchronizer(double time)
|
void CoreAudioDevice::seekSynchronizer(double time)
|
||||||
|
|||||||
Reference in New Issue
Block a user