Class AUAudioUnitV2Bridge

  • All Implemented Interfaces:
    NSObject

    public class AUAudioUnitV2Bridge
    extends AUAudioUnit
    Wraps a v2 audio unit in an AUAudioUnit subclass. Implementors of version 3 audio units may derive their implementations from AUAudioUnitV2Bridge. It expects the component description with which it is initialized to refer to a registered component with a v2 implementation using an AudioComponentFactoryFunction. The bridge will instantiate the v2 audio unit via the factory function and communicate it with it using the v2 AudioUnit API's (AudioUnitSetProperty, etc.) Hosts should not access this class; it will be instantiated when needed when creating an AUAudioUnit. API-Since: 9.0
    • Constructor Detail

      • AUAudioUnitV2Bridge

        protected AUAudioUnitV2Bridge​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static AUAudioUnitV2Bridge allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • registerSubclassAsComponentDescriptionNameVersion

        public static void registerSubclassAsComponentDescriptionNameVersion​(@NotNull
                                                                             @NotNull org.moe.natj.objc.Class cls,
                                                                             AudioComponentDescription componentDescription,
                                                                             @NotNull
                                                                             @NotNull java.lang.String name,
                                                                             int version)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • initWithComponentDescriptionOptionsError

        public AUAudioUnitV2Bridge initWithComponentDescriptionOptionsError​(AudioComponentDescription componentDescription,
                                                                            int options,
                                                                            @Nullable
                                                                            @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
        Description copied from class: AUAudioUnit
        initWithComponentDescription:options:error: Designated initializer.
        Overrides:
        initWithComponentDescriptionOptionsError in class AUAudioUnit
        Parameters:
        componentDescription - A single AUAudioUnit subclass may implement multiple audio units, for example, an effect that can also function as a generator, or a cluster of related effects. The component description specifies the component which was instantiated.
        options - Options for loading the unit in-process or out-of-process.
        outError - Returned in the event of failure.
      • audioUnit

        @NotNull
        public @NotNull AudioComponentInstance audioUnit()
        [@property] audioUnit The underlying v2 AudioUnit We generally discourage interacting with the underlying v2 AudioUnit directly and recommend using the v3 equivalent methods and properties from AUAudioUnitV2Bridge. In some rare cases it may be desirable to interact with the v2 AudioUnit. For example, a v2 plugin may define custom properties that are not bridged to v3. Implementors can sublcass AUAudioUnitV2Bridge and call the v2 API methods AudioUnitGetProperty / AudioUnitSetProperty with the v2 AudioUnit. API-Since: 14.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.