Fix: Audaspace: Unsupported availability guard
`__builtin_available` needs to be used with `if()` Pull Request: https://projects.blender.org/blender/blender/pulls/135161
This commit is contained in:
@@ -148,14 +148,12 @@ void CoreAudioDevice::open()
|
||||
void CoreAudioDevice::close()
|
||||
{
|
||||
// NOTE: Keep the device open for buggy MacOS versions (see blender issue #121911).
|
||||
if(!__builtin_available(macOS 15.2, *))
|
||||
if(__builtin_available(macOS 15.2, *))
|
||||
{
|
||||
return;
|
||||
AudioOutputUnitStop(m_audio_unit);
|
||||
AudioUnitUninitialize(m_audio_unit);
|
||||
AudioComponentInstanceDispose(m_audio_unit);
|
||||
}
|
||||
|
||||
AudioOutputUnitStop(m_audio_unit);
|
||||
AudioUnitUninitialize(m_audio_unit);
|
||||
AudioComponentInstanceDispose(m_audio_unit);
|
||||
}
|
||||
|
||||
CoreAudioDevice::CoreAudioDevice(DeviceSpecs specs, int buffersize) :
|
||||
|
||||
Reference in New Issue
Block a user