Class AVAudioCompressedBuffer

  • All Implemented Interfaces:
    NSCopying, NSMutableCopying, NSObject

    public class AVAudioCompressedBuffer
    extends AVAudioBuffer
    AVAudioCompressedBuffer A subclass of AVAudioBuffer for use with compressed audio formats. API-Since: 9.0
    • Constructor Detail

      • AVAudioCompressedBuffer

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • automaticallyNotifiesObserversForKey

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

        public int byteCapacity()
        [@property] byteCapacity The buffer's capacity in bytes API-Since: 11.0
      • byteLength

        public int byteLength()
        [@property] byteLength The current number of valid bytes in the buffer. Can be changed as part of an operation that modifies the contents. API-Since: 11.0
      • 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()
      • data

        @NotNull
        public @NotNull org.moe.natj.general.ptr.VoidPtr data()
        [@property] data Access the buffer's data bytes.
      • 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()
      • initWithFormatPacketCapacity

        public AVAudioCompressedBuffer initWithFormatPacketCapacity​(@NotNull
                                                                    @NotNull AVAudioFormat format,
                                                                    int packetCapacity)
        initWithFormat:packetCapacity: Initialize a buffer that is to contain constant bytes per packet compressed audio data. This fails if the format is PCM or if the format has variable bytes per packet (format.streamDescription->mBytesPerPacket == 0).
        Parameters:
        format - The format of the audio to be contained in the buffer.
        packetCapacity - The capacity of the buffer in packets.
      • initWithFormatPacketCapacityMaximumPacketSize

        public AVAudioCompressedBuffer initWithFormatPacketCapacityMaximumPacketSize​(@NotNull
                                                                                     @NotNull AVAudioFormat format,
                                                                                     int packetCapacity,
                                                                                     long maximumPacketSize)
        initWithFormat:packetCapacity:maximumPacketSize: Initialize a buffer that is to contain compressed audio data. An exception is raised if the format is PCM.
        Parameters:
        format - The format of the audio to be contained in the buffer.
        packetCapacity - The capacity of the buffer in packets.
        maximumPacketSize - The maximum size in bytes of a compressed packet. The maximum packet size can be obtained from the maximumOutputPacketSize property of an AVAudioConverter configured for encoding this format.
      • 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)
      • maximumPacketSize

        public long maximumPacketSize()
        [@property] maximumPacketSize The maximum size of a compressed packet in bytes.
      • packetCapacity

        public int packetCapacity()
        [@property] packetCapacity The number of compressed packets the buffer can contain.
      • packetCount

        public int packetCount()
        [@property] packetCount The current number of compressed packets in the buffer. You may modify the packetCount as part of an operation that modifies its contents. The packetCount must be less than or equal to the packetCapacity.
      • packetDescriptions

        @Nullable
        public @Nullable AudioStreamPacketDescription packetDescriptions()
        [@property] packetDescriptions Access the buffer's array of packet descriptions, if any. If the format has constant bytes per packet (format.streamDescription->mBytesPerPacket != 0), then this will return nil.
      • resolveClassMethod

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

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

        public void setByteLength​(int value)
        [@property] byteLength The current number of valid bytes in the buffer. Can be changed as part of an operation that modifies the contents. API-Since: 11.0
      • setPacketCount

        public void setPacketCount​(int value)
        [@property] packetCount The current number of compressed packets in the buffer. You may modify the packetCount as part of an operation that modifies its contents. The packetCount must be less than or equal to the packetCapacity.
      • 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()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.