PHASE macOS 12.0 Beta 2 to Beta 3 API Differences

PHASEAssetRegistry.h
Removed -[PHASEAssetRegistry unregisterAssetWithIdentifier:completionBlock:]
Added -[PHASEAssetRegistry unregisterAssetWithIdentifier:completion:]
PHASEDirectivityModel.h
Removed -[PHASECardioidDirectivityModelParameters init]
Removed PHASECardioidDirectivityModelParameters.subbands
PHASEDucker.h
Modified -[PHASEDucker isActive]
Declaration
From- (BOOL)isActive
To@property (readonly, getter=isActive) BOOL active

PHASEMaterial.h
Removed PHASEMaterialPresetDoorWoodLight
Removed PHASEMaterialPresetDoorWoodHeavy
Removed PHASEMaterialPresetDoorSoundproof
Removed PHASEMaterialPresetWindowSinglePane
Removed PHASEMaterialPresetWindowDoublePane
Added PHASEMaterialPresetWood
PHASESoundEvent.h
Removed -[PHASESoundEvent prepareWithCompletionBlock:]
Removed -[PHASESoundEvent prepareAndReturnError:]
Removed -[PHASESoundEvent startWithCompletionBlock:]
Removed -[PHASESoundEvent startAndReturnError:]
Removed -[PHASESoundEvent seekToTime:completionBlock:]
Added -[PHASESoundEvent prepareWithCompletion:]
Added -[PHASESoundEvent startWithCompletion:]
Added -[PHASESoundEvent seekToTime:completion:]
PHASESoundEventNodes.h
Removed PHASEPushStreamCompletionCallbackType
Added PHASEPushStreamCompletionCallbackCondition
Modified -[PHASEPushStreamNode scheduleBuffer:completionCallbackType:completionHandler:]
Declaration
From- (void)scheduleBuffer:(AVAudioPCMBuffer *)buffer completionCallbackType:(PHASEPushStreamCompletionCallbackType)completionCallbackType completionHandler:(void (^)(PHASEPushStreamCompletionCallbackType))completionHandler
To- (void)scheduleBuffer:(AVAudioPCMBuffer *)buffer completionCallbackType:(PHASEPushStreamCompletionCallbackCondition)completionCallbackType completionHandler:(void (^)(PHASEPushStreamCompletionCallbackCondition))completionHandler

Modified -[PHASEPushStreamNode scheduleBuffer:atTime:options:completionCallbackType:completionHandler:]
Declaration
From- (void)scheduleBuffer:(AVAudioPCMBuffer *)buffer atTime:(AVAudioTime *)when options:(PHASEPushStreamBufferOptions)options completionCallbackType:(PHASEPushStreamCompletionCallbackType)completionCallbackType completionHandler:(void (^)(PHASEPushStreamCompletionCallbackType))completionHandler
To- (void)scheduleBuffer:(AVAudioPCMBuffer *)buffer atTime:(AVAudioTime *)when options:(PHASEPushStreamBufferOptions)options completionCallbackType:(PHASEPushStreamCompletionCallbackCondition)completionCallbackType completionHandler:(void (^)(PHASEPushStreamCompletionCallbackCondition))completionHandler

PHASESpatialPipeline.h
Removed PHASESpatialPipelineOptions
Removed PHASESpatialPipelineOptionDirectPathTransmission
Removed PHASESpatialPipelineOptionEarlyReflections
Removed PHASESpatialPipelineOptionLateReverb
Removed -[PHASESpatialPipeline initWithOptions:]
Removed PHASESpatialPipeline.options
Added PHASESpatialPipelineFlags
Added PHASESpatialPipelineFlagDirectPathTransmission
Added PHASESpatialPipelineFlagEarlyReflections
Added PHASESpatialPipelineFlagLateReverb
Added -[PHASESpatialPipeline initWithFlags:]
Added PHASESpatialPipeline.flags
PHASETypes.h
Removed PHASESoundEventPrepareHandlerReasonError
Removed PHASESoundEventStartHandlerReasonError
Removed PHASESoundEventSeekHandlerReasonError
Removed PHASESoundEventSeekHandlerReasonErrorSeekAlreadyInProgress
Added PHASESoundEventPrepareHandlerReasonFailure
Added PHASESoundEventStartHandlerReasonFailure
Added PHASESoundEventSeekHandlerReasonFailure
Added PHASESoundEventSeekHandlerReasonFailureSeekAlreadyInProgress