# This file is generated by objective.metadata
#
# Last update: Sat Jul  1 13:59:16 2023
#
# flake8: noqa

import objc, sys
from typing import NewType

if sys.maxsize > 2**32:

    def sel32or64(a, b):
        return b

else:

    def sel32or64(a, b):
        return a


if objc.arch == "arm64":

    def selAorI(a, b):
        return a

else:

    def selAorI(a, b):
        return b


misc = {}
constants = """$PHASEAssetErrorDomain$PHASEErrorDomain$PHASESoundEventErrorDomain$PHASESpatialCategoryDirectPathTransmission$PHASESpatialCategoryEarlyReflections$PHASESpatialCategoryLateReverb$"""
enums = """$PHASEAssetErrorAlreadyExists@1346920804$PHASEAssetErrorBadParameters@1346920803$PHASEAssetErrorFailedToLoad@1346920801$PHASEAssetErrorGeneralError@1346920805$PHASEAssetErrorInvalidEngineInstance@1346920802$PHASEAssetErrorMemoryAllocation@1346920806$PHASEAssetTypeResident@0$PHASEAssetTypeStreamed@1$PHASECalibrationModeAbsoluteSpl@2$PHASECalibrationModeNone@0$PHASECalibrationModeRelativeSpl@1$PHASECullOptionDoNotCull@4$PHASECullOptionSleepWakeAtRandomOffset@2$PHASECullOptionSleepWakeAtRealtimeOffset@3$PHASECullOptionSleepWakeAtZero@1$PHASECullOptionTerminate@0$PHASECurveTypeCubed@1668432757$PHASECurveTypeHoldStartValue@1668434003$PHASECurveTypeInverseCubed@1668434243$PHASECurveTypeInverseSigmoid@1668434247$PHASECurveTypeInverseSine@1668434259$PHASECurveTypeInverseSquared@1668434257$PHASECurveTypeJumpToEndValue@1668434501$PHASECurveTypeLinear@1668435054$PHASECurveTypeSigmoid@1668436839$PHASECurveTypeSine@1668436846$PHASECurveTypeSquared@1668436849$PHASEErrorInitializeFailed@1346913633$PHASEErrorInvalidObject@1346913634$PHASEMaterialPresetBrick@1833071211$PHASEMaterialPresetCardboard@1833136740$PHASEMaterialPresetConcrete@1833132914$PHASEMaterialPresetDrywall@1833202295$PHASEMaterialPresetGlass@1833397363$PHASEMaterialPresetWood@1834448228$PHASEMediumPresetAir@1835286898$PHASENormalizationModeDynamic@1$PHASENormalizationModeNone@0$PHASEPlaybackModeLooping@1$PHASEPlaybackModeOneShot@0$PHASEPushStreamBufferDefault@1$PHASEPushStreamBufferInterrupts@4$PHASEPushStreamBufferInterruptsAtLoop@8$PHASEPushStreamBufferLoops@2$PHASEPushStreamCompletionDataRendered@0$PHASERenderingStatePaused@2$PHASERenderingStateStarted@1$PHASERenderingStateStopped@0$PHASEReverbPresetCathedral@1917023336$PHASEReverbPresetLargeChamber@1917600616$PHASEReverbPresetLargeHall@1917601841$PHASEReverbPresetLargeHall2@1917601842$PHASEReverbPresetLargeRoom@1917604401$PHASEReverbPresetLargeRoom2@1917604402$PHASEReverbPresetMediumChamber@1917666152$PHASEReverbPresetMediumHall@1917667377$PHASEReverbPresetMediumHall2@1917667378$PHASEReverbPresetMediumHall3@1917667379$PHASEReverbPresetMediumRoom@1917669997$PHASEReverbPresetNone@1917742958$PHASEReverbPresetSmallRoom@1918063213$PHASESoundEventErrorAPIMisuse@1346925668$PHASESoundEventErrorBadData@1346925666$PHASESoundEventErrorInvalidInstance@1346925667$PHASESoundEventErrorNotFound@1346925665$PHASESoundEventErrorOutOfMemory@1346925670$PHASESoundEventErrorSystemNotInitialized@1346925669$PHASESoundEventPrepareHandlerReasonFailure@0$PHASESoundEventPrepareHandlerReasonPrepared@1$PHASESoundEventPrepareHandlerReasonTerminated@2$PHASESoundEventPrepareStatePrepareInProgress@1$PHASESoundEventPrepareStatePrepareNotStarted@0$PHASESoundEventPrepareStatePrepared@2$PHASESoundEventSeekHandlerReasonFailure@0$PHASESoundEventSeekHandlerReasonFailureSeekAlreadyInProgress@1$PHASESoundEventSeekHandlerReasonSeekSuccessful@2$PHASESoundEventStartHandlerReasonFailure@0$PHASESoundEventStartHandlerReasonFinishedPlaying@1$PHASESoundEventStartHandlerReasonTerminated@2$PHASESpatialPipelineFlagDirectPathTransmission@1$PHASESpatialPipelineFlagEarlyReflections@2$PHASESpatialPipelineFlagLateReverb@4$PHASESpatializationModeAlwaysUseBinaural@1$PHASESpatializationModeAlwaysUseChannelBased@2$PHASESpatializationModeAutomatic@0$PHASEUpdateModeAutomatic@0$PHASEUpdateModeManual@1$"""
misc.update(
    {
        "PHASESpatialPipelineFlags": NewType("PHASESpatialPipelineFlags", int),
        "PHASESoundEventPrepareState": NewType("PHASESoundEventPrepareState", int),
        "PHASEPushStreamBufferOptions": NewType("PHASEPushStreamBufferOptions", int),
        "PHASERenderingState": NewType("PHASERenderingState", int),
        "PHASEAssetType": NewType("PHASEAssetType", int),
        "PHASECullOption": NewType("PHASECullOption", int),
        "PHASECalibrationMode": NewType("PHASECalibrationMode", int),
        "PHASESoundEventStartHandlerReason": NewType(
            "PHASESoundEventStartHandlerReason", int
        ),
        "PHASEMediumPreset": NewType("PHASEMediumPreset", int),
        "PHASEUpdateMode": NewType("PHASEUpdateMode", int),
        "PHASEPlaybackMode": NewType("PHASEPlaybackMode", int),
        "PHASEAssetError": NewType("PHASEAssetError", int),
        "PHASEMaterialPreset": NewType("PHASEMaterialPreset", int),
        "PHASESoundEventPrepareHandlerReason": NewType(
            "PHASESoundEventPrepareHandlerReason", int
        ),
        "PHASESoundEventSeekHandlerReason": NewType(
            "PHASESoundEventSeekHandlerReason", int
        ),
        "PHASESpatializationMode": NewType("PHASESpatializationMode", int),
        "PHASECurveType": NewType("PHASECurveType", int),
        "PHASENormalizationMode": NewType("PHASENormalizationMode", int),
        "PHASESoundEventError": NewType("PHASESoundEventError", int),
        "PHASEError": NewType("PHASEError", int),
        "PHASEReverbPreset": NewType("PHASEReverbPreset", int),
        "PHASEPushStreamCompletionCallbackCondition": NewType(
            "PHASEPushStreamCompletionCallbackCondition", int
        ),
    }
)
misc.update({"PHASESpatialCategory": NewType("PHASESpatialCategory", str)})
misc.update({})
r = objc.registerMetaDataForSelector
objc._updatingMetadata(True)
try:
    r(
        b"PHASEAmbientMixerDefinition",
        b"initWithChannelLayout:orientation:",
        {
            "full_signature": b"@@:@{simd_quatf=<4f>}",
            "arguments": {3: {"type": b"{simd_quatf=<4f>}"}},
        },
    )
    r(
        b"PHASEAmbientMixerDefinition",
        b"initWithChannelLayout:orientation:identifier:",
        {
            "full_signature": b"@@:@{simd_quatf=<4f>}@",
            "arguments": {3: {"type": b"{simd_quatf=<4f>}"}},
        },
    )
    r(
        b"PHASEAmbientMixerDefinition",
        b"orientation",
        {
            "full_signature": b"{simd_quatf=<4f>}@:",
            "retval": {"type": b"{simd_quatf=<4f>}"},
        },
    )
    r(
        b"PHASEAssetRegistry",
        b"registerGlobalMetaParameter:error:",
        {"arguments": {3: {"type_modifier": b"o"}}},
    )
    r(
        b"PHASEAssetRegistry",
        b"registerSoundAssetAtURL:identifier:assetType:channelLayout:normalizationMode:error:",
        {"arguments": {7: {"type_modifier": b"o"}}},
    )
    r(
        b"PHASEAssetRegistry",
        b"registerSoundAssetWithData:identifier:format:normalizationMode:error:",
        {"arguments": {6: {"type_modifier": b"o"}}},
    )
    r(
        b"PHASEAssetRegistry",
        b"registerSoundEventAssetWithRootNode:identifier:error:",
        {"arguments": {4: {"type_modifier": b"o"}}},
    )
    r(
        b"PHASEAssetRegistry",
        b"unregisterAssetWithIdentifier:completion:",
        {
            "arguments": {
                3: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"B"}},
                    }
                }
            }
        },
    )
    r(b"PHASEDucker", b"isActive", {"retval": {"type": b"Z"}})
    r(
        b"PHASEEngine",
        b"startAndReturnError:",
        {"retval": {"type": b"Z"}, "arguments": {2: {"type_modifier": b"o"}}},
    )
    r(
        b"PHASEEnvelope",
        b"initWithStartPoint:segments:",
        {"full_signature": b"@@:<2d>@", "arguments": {2: {"type": b"<2d>"}}},
    )
    r(
        b"PHASEEnvelope",
        b"startPoint",
        {"full_signature": b"<2d>@:", "retval": {"type": b"<2d>"}},
    )
    r(
        b"PHASEEnvelopeSegment",
        b"endPoint",
        {"full_signature": b"<2d>@:", "retval": {"type": b"<2d>"}},
    )
    r(
        b"PHASEEnvelopeSegment",
        b"initWithEndPoint:curveType:",
        {"full_signature": b"@@:<2d>q", "arguments": {2: {"type": b"<2d>"}}},
    )
    r(
        b"PHASEEnvelopeSegment",
        b"setEndPoint:",
        {"full_signature": b"v@:<2d>", "arguments": {2: {"type": b"<2d>"}}},
    )
    r(b"PHASEGroup", b"isMuted", {"retval": {"type": b"Z"}})
    r(b"PHASEGroup", b"isSoloed", {"retval": {"type": b"Z"}})
    r(
        b"PHASEObject",
        b"addChild:error:",
        {"retval": {"type": b"Z"}, "arguments": {3: {"type_modifier": b"o"}}},
    )
    r(
        b"PHASEObject",
        b"forward",
        {"full_signature": b"<3f>@:", "retval": {"type": b"<3f>"}},
    )
    r(
        b"PHASEObject",
        b"right",
        {"full_signature": b"<3f>@:", "retval": {"type": b"<3f>"}},
    )
    r(
        b"PHASEObject",
        b"setTransform:",
        {
            "full_signature": b"v@:{simd_float4x4=[4<4f>]}",
            "arguments": {2: {"type": b"{simd_float4x4=[4<4f>]}"}},
        },
    )
    r(
        b"PHASEObject",
        b"setWorldTransform:",
        {
            "full_signature": b"v@:{simd_float4x4=[4<4f>]}",
            "arguments": {2: {"type": b"{simd_float4x4=[4<4f>]}"}},
        },
    )
    r(
        b"PHASEObject",
        b"transform",
        {
            "full_signature": b"{simd_float4x4=[4<4f>]}@:",
            "retval": {"type": b"{simd_float4x4=[4<4f>]}"},
        },
    )
    r(b"PHASEObject", b"up", {"full_signature": b"<3f>@:", "retval": {"type": b"<3f>"}})
    r(
        b"PHASEObject",
        b"worldTransform",
        {
            "full_signature": b"{simd_float4x4=[4<4f>]}@:",
            "retval": {"type": b"{simd_float4x4=[4<4f>]}"},
        },
    )
    r(
        b"PHASEPushStreamNode",
        b"scheduleBuffer:atTime:options:completionCallbackType:completionHandler:",
        {
            "arguments": {
                6: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"q"}},
                    }
                }
            }
        },
    )
    r(
        b"PHASEPushStreamNode",
        b"scheduleBuffer:completionCallbackType:completionHandler:",
        {
            "arguments": {
                4: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"q"}},
                    }
                }
            }
        },
    )
    r(b"PHASEPushStreamNodeDefinition", b"normalize", {"retval": {"type": b"Z"}})
    r(
        b"PHASEPushStreamNodeDefinition",
        b"setNormalize:",
        {"arguments": {2: {"type": b"Z"}}},
    )
    r(
        b"PHASESoundEvent",
        b"initWithEngine:assetIdentifier:error:",
        {"arguments": {4: {"type_modifier": b"o"}}},
    )
    r(
        b"PHASESoundEvent",
        b"initWithEngine:assetIdentifier:mixerParameters:error:",
        {"arguments": {5: {"type_modifier": b"o"}}},
    )
    r(b"PHASESoundEvent", b"isIndefinite", {"retval": {"type": b"Z"}})
    r(
        b"PHASESoundEvent",
        b"prepareWithCompletion:",
        {
            "arguments": {
                2: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"q"}},
                    }
                }
            }
        },
    )
    r(
        b"PHASESoundEvent",
        b"seekToTime:completion:",
        {
            "arguments": {
                3: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"q"}},
                    }
                }
            }
        },
    )
    r(
        b"PHASESoundEvent",
        b"startWithCompletion:",
        {
            "arguments": {
                2: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"q"}},
                    }
                }
            }
        },
    )
finally:
    objc._updatingMetadata(False)
expressions = {}

# END OF FILE
