Package apple.avfoundation
Class AVAudioCompressedBuffer
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.avfoundation.AVAudioBuffer
-
- apple.avfoundation.AVAudioCompressedBuffer
-
- All Implemented Interfaces:
NSCopying,NSMutableCopying,NSObject
public class AVAudioCompressedBuffer extends AVAudioBuffer
AVAudioCompressedBuffer A subclass of AVAudioBuffer for use with compressed audio formats.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAVAudioCompressedBuffer(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static AVAudioCompressedBufferalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)intbyteCapacity()[@property] byteCapacity The buffer's capacity in bytesintbyteLength()[@property] byteLength The current number of valid bytes in the buffer.static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()org.moe.natj.general.ptr.VoidPtrdata()[@property] data Access the buffer's data bytes.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()static longhash_static()AVAudioCompressedBufferinit()AVAudioCompressedBufferinitWithFormatPacketCapacity(AVAudioFormat format, int packetCapacity)initWithFormat:packetCapacity: Initialize a buffer that is to contain constant bytes per packet compressed audio data.AVAudioCompressedBufferinitWithFormatPacketCapacityMaximumPacketSize(AVAudioFormat format, int packetCapacity, long maximumPacketSize)initWithFormat:packetCapacity:maximumPacketSize: Initialize a buffer that is to contain compressed audio data.static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)longmaximumPacketSize()[@property] maximumPacketSize The maximum size of a compressed packet in bytes.static java.lang.Objectnew_objc()intpacketCapacity()[@property] packetCapacity The number of compressed packets the buffer can contain.intpacketCount()[@property] packetCount The current number of compressed packets in the buffer.AudioStreamPacketDescriptionpacketDescriptions()[@property] packetDescriptions Access the buffer's array of packet descriptions, if any.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetByteLength(int value)[@property] byteLength The current number of valid bytes in the buffer.voidsetPacketCount(int value)[@property] packetCount The current number of compressed packets in the buffer.static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()static longversion_static()-
Methods inherited from class apple.avfoundation.AVAudioBuffer
audioBufferList, copyWithZone, format, mutableAudioBufferList, mutableCopyWithZone
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static AVAudioCompressedBuffer alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static 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()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
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()
-
data
public org.moe.natj.general.ptr.VoidPtr data()
[@property] data Access the buffer's data bytes.
-
init
public AVAudioCompressedBuffer init()
- Overrides:
initin classAVAudioBuffer
-
initWithFormatPacketCapacity
public AVAudioCompressedBuffer initWithFormatPacketCapacity(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(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.
-
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
public 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.
-
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.
-
byteCapacity
public int byteCapacity()
[@property] byteCapacity The buffer's capacity in bytes
-
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.
-
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.
-
-