Class AUAudioUnitBusArray

  • All Implemented Interfaces:
    NSFastEnumeration, NSObject

    public class AUAudioUnitBusArray
    extends NSObject
    implements NSFastEnumeration
    AUAudioUnitBusArray Container for an audio unit's input or output busses. Hosts can observe a bus property across all busses by using KVO on this object, without having to observe it on each individual bus. (One could add listeners to individual busses, but that means one has to observe bus count changes and add/remove listeners in response. Also, NSArray's addObserver:toObjectsAtIndexes:forKeyPath:options:context: is problematic; it does not let the individual objects override the observation request, and so a bus which is proxying a bus in an extension process does not get the message.) Some audio units (e.g. mixers) support variable numbers of busses, via subclassing. When the bus count changes, a KVO notification is sent on "inputBusses" or "outputBusses," as appropriate. Subclassers should see also the AUAudioUnitBusImplementation category. The bus array is bridged to the v2 property kAudioUnitProperty_ElementCount. API-Since: 9.0
    • Constructor Detail

      • AUAudioUnitBusArray

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static AUAudioUnitBusArray 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)
      • 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()
      • addObserverToAllBussesForKeyPathOptionsContext

        public void addObserverToAllBussesForKeyPathOptionsContext​(@NotNull
                                                                   @NotNull NSObject observer,
                                                                   @NotNull
                                                                   @NotNull java.lang.String keyPath,
                                                                   long options,
                                                                   @Nullable
                                                                   @Nullable org.moe.natj.general.ptr.VoidPtr context)
        addObserverToAllBusses:forKeyPath:options:context: Add a KVO observer for a property on all busses in the array.
      • busType

        public long busType()
        Which bus array this is (input or output).
      • count

        public long count()
        [@property] count
      • countByEnumeratingWithStateObjectsCount

        public long countByEnumeratingWithStateObjectsCount​(@NotNull
                                                            @NotNull org.moe.natj.general.ptr.VoidPtr state,
                                                            @NotNull
                                                            @NotNull org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> buffer,
                                                            long len)
        Specified by:
        countByEnumeratingWithStateObjectsCount in interface NSFastEnumeration
      • initWithAudioUnitBusType

        public AUAudioUnitBusArray initWithAudioUnitBusType​(@NotNull
                                                            @NotNull AUAudioUnit owner,
                                                            long busType)
        initWithAudioUnit:busType: Initializes an empty bus array.
      • initWithAudioUnitBusTypeBusses

        public AUAudioUnitBusArray initWithAudioUnitBusTypeBusses​(@NotNull
                                                                  @NotNull AUAudioUnit owner,
                                                                  long busType,
                                                                  @NotNull
                                                                  @NotNull NSArray<? extends AUAudioUnitBus> busArray)
        initWithAudioUnit:busType:busses: Initializes by making a copy of the supplied bus array.
      • isCountChangeable

        public boolean isCountChangeable()
        [@property] countChangeable Whether the array can have a variable number of busses. The base implementation returns false.
      • objectAtIndexedSubscript

        @NotNull
        public @NotNull AUAudioUnitBus objectAtIndexedSubscript​(long index)
        objectAtIndexedSubscript:
      • ownerAudioUnit

        @NotNull
        public @NotNull AUAudioUnit ownerAudioUnit()
        The audio unit that owns the bus.
      • removeObserverFromAllBussesForKeyPathContext

        public void removeObserverFromAllBussesForKeyPathContext​(@NotNull
                                                                 @NotNull NSObject observer,
                                                                 @NotNull
                                                                 @NotNull java.lang.String keyPath,
                                                                 @Nullable
                                                                 @Nullable org.moe.natj.general.ptr.VoidPtr context)
        removeObserverFromAllBusses:forKeyPath:context: Remove a KVO observer for a property on all busses in the array.
      • replaceBusses

        public void replaceBusses​(@NotNull
                                  @NotNull NSArray<? extends AUAudioUnitBus> busArray)
        Sets the bus array to be a copy of the supplied array. The base class issues KVO notifications.
      • setBusCountError

        public boolean setBusCountError​(long count,
                                        @Nullable
                                        @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
        [@property] setBusCount:error: Change the number of busses in the array.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.