PHASE iOS 15.0 Beta 1 to Beta 2 API Differences

PHASEAssetRegistry.h
Removed -[PHASEAssetRegistry unregisterAssetWithIdentifier:completionHandler:]
Added -[PHASEAssetRegistry unregisterAssetWithIdentifier:completionBlock:]
PHASEDirectivityModel.h
Removed -[PHASEConeDirectivityModelParameters init]
Removed PHASEConeDirectivityModelParameters.subbands
Added -[PHASECardioidDirectivityModelParameters initWithSubbandParameters:]
Added PHASECardioidDirectivityModelParameters.subbandParameters
Added -[PHASEConeDirectivityModelParameters initWithSubbandParameters:]
Added PHASEConeDirectivityModelParameters.subbandParameters
Modified -[PHASECardioidDirectivityModelParameters init]
AvailabilityReplacement
FromAvailablenone
ToDeprecated-initWithSubbandParameters:

Modified PHASECardioidDirectivityModelParameters.subbands
AvailabilityReplacement
FromAvailablenone
ToDeprecated-initWithSubbandParameters:

PHASEDucker.h
Added -[PHASEDucker activate]
Added -[PHASEDucker deactivate]
Modified -[PHASEDucker isActive]
Declaration
From@property (nonatomic, readwrite, getter=isActive) BOOL active
To- (BOOL)isActive

PHASEEngine.h
Removed PHASEEngine.overrideOutputSpatializationMode
Added PHASEEngine.outputSpatializationMode
Modified PHASEEngine.groups
Declaration
From@property (readonly, copy) NSDictionary<NSString *,PHASEGroup *> *groups
To@property (nonatomic, readonly, copy) NSDictionary<NSString *,PHASEGroup *> *groups

PHASEEnvelope.h
Removed PHASEEnvelopePoint
Removed PHASEEnvelopeMinMax
Added PHASENumericPair
Added -[PHASENumericPair initWithFirstValue:secondValue:]
Added PHASENumericPair.first
Added PHASENumericPair.second
Modified -[PHASEEnvelopeSegment initWithEndPoint:curveType:]
Declaration
From- (instancetype)initWithEndPoint:(PHASEEnvelopePoint)endPoint curveType:(PHASECurveType)curveType
To- (instancetype)initWithEndPoint:(simd_double2)endPoint curveType:(PHASECurveType)curveType

Modified PHASEEnvelopeSegment.endPoint
Declaration
From@property (nonatomic, assign) PHASEEnvelopePoint endPoint
To@property (nonatomic, assign) simd_double2 endPoint

Modified -[PHASEEnvelope initWithStartPoint:segments:]
Declaration
From- (instancetype)initWithStartPoint:(PHASEEnvelopePoint)startPoint segments:(NSArray<PHASEEnvelopeSegment *> *)segments
To- (instancetype)initWithStartPoint:(simd_double2)startPoint segments:(NSArray<PHASEEnvelopeSegment *> *)segments

Modified PHASEEnvelope.startPoint
Declaration
From@property (nonatomic, readonly) PHASEEnvelopePoint startPoint
To@property (nonatomic, readonly) simd_double2 startPoint

Modified PHASEEnvelope.domain
Declaration
From@property (nonatomic, readonly) PHASEEnvelopeMinMax domain
To@property (nonatomic, readonly, strong) PHASENumericPair *domain

Modified PHASEEnvelope.range
Declaration
From@property (nonatomic, readonly) PHASEEnvelopeMinMax range
To@property (nonatomic, readonly, strong) PHASENumericPair *range

PHASEGeneratorParameters.h
Added PHASEGeneratorParameters
Added PHASEGeneratorParameters.gain
Added PHASEGeneratorParameters.rate
PHASEGroup.h
Modified PHASEGroup
Protocols
FromNSCopying
Tonone

PHASEGroupPreset.h
Removed -[PHASEGroupPreset activateWithOverrideTimeInterval:]
Removed -[PHASEGroupPreset deactivateWithOverrideTimeInterval:]
Added -[PHASEGroupPreset activateWithTimeToTargetOverride:]
Added -[PHASEGroupPreset deactivateWithTimeToResetOverride:]
Modified -[PHASEGroupPreset initWithEngine:settings:timeToTarget:timeToReset:]
Declaration
From- (instancetype)initWithEngine:(PHASEEngine *)engine settings:(NSDictionary<PHASEGroup *,PHASEGroupPresetSetting *> *)settings timeToTarget:(double)timeToTarget timeToReset:(double)timeToReset
To- (instancetype)initWithEngine:(PHASEEngine *)engine settings:(NSDictionary<NSString *,PHASEGroupPresetSetting *> *)settings timeToTarget:(double)timeToTarget timeToReset:(double)timeToReset

Modified PHASEGroupPreset.settings
Declaration
From@property (nonatomic, readonly) NSDictionary<PHASEGroup *,PHASEGroupPresetSetting *> *settings
To@property (nonatomic, readonly) NSDictionary<NSString *,PHASEGroupPresetSetting *> *settings

PHASEMaterial.h
Removed PHASEMaterialPresetWood
Removed PHASEMaterialPresetPlaster
Removed PHASEMaterialPresetDoorMetalLight
Removed PHASEMaterialPresetDoorMetalHeavy
PHASEMixer.h
Removed PHASEMixer.mixerType
PHASESoundEvent.h
Removed -[PHASESoundEvent prepareWithCompletionHandler:]
Removed -[PHASESoundEvent startWithCompletionHandler:]
Removed -[PHASESoundEvent seekToTime:completionHandler:]
Added -[PHASESoundEvent prepareWithCompletionBlock:]
Added -[PHASESoundEvent startWithCompletionBlock:]
Added -[PHASESoundEvent seekToTime:completionBlock:]
PHASESoundEventNodes.h
Removed PHASEGeneratorNodeDefinition.playbackMode
Removed PHASEGeneratorNodeDefinition.cullOption
Removed PHASERandomNodeDefinition.noRepeatLastX
Added PHASESamplerNodeDefinition.cullOption
Added PHASESamplerNodeDefinition.playbackMode
Added PHASERandomNodeDefinition.uniqueSelectionQueueLength
PHASETypes.h
Removed PHASESpatializationModeBinaural
Removed PHASESpatializationModeChannelBased
Removed PHASEParseErrorDomain
Removed PHASEParserError
Removed PHASEParserErrorParseError
Removed PHASEParserErrorMissingRequiredField
Removed PHASEParserErrorFieldWithWrongType
Removed PHASEParserErrorOutOfMemory
Removed PHASEParserErrorStringTooLong
Removed PHASEParserErrorInvalidValue
Removed PHASEParserErrorWrongVersion
Removed PHASEParserErrorBadData
Removed PHASEParserErrorNotImplemented
Removed PHASEExternalStreamErrorDomain
Removed PHASEExternalStreamError
Removed PHASEExternalStreamErrorNotAvailable
Removed PHASEExternalStreamErrorInvalidArguments
Removed PHASEExternalStreamErrorStreamAlreadyExists
Removed PHASEExternalStreamErrorStreamDoesNotExist
Removed PHASEExternalStreamErrorStreamAlreadyClaimed
Removed PHASEExternalStreamErrorStreamNotClaimed
Removed PHASEExternalStreamErrorAllocationFailed
Removed PHASESoundEventStartHandlerReasonKilled
Removed PHASESoundEventPrepareHandlerReasonKilled
Removed PHASEAssetUnregisterHandlerReason
Removed PHASEAssetUnregisterHandlerReasonError
Removed PHASEAssetUnregisterHandlerReasonSuccess
Removed PHASECurveTypeSineReciprocal
Removed PHASECullOptionKill
Removed PHASEPlaybackModeLoopingRandomStartOffset
Removed PHASEMixerType
Removed PHASEMixerTypeUnknown
Removed PHASEMixerTypeSpatial
Removed PHASEMixerTypeAmbient
Removed PHASEMixerTypeChannel
Added PHASESpatializationModeAlwaysUseBinaural
Added PHASESpatializationModeAlwaysUseChannelBased
Added PHASECurveTypeInverseSine