Class AVAudioRecorder

  • All Implemented Interfaces:
    NSObject

    public class AVAudioRecorder
    extends NSObject
    • Constructor Detail

      • AVAudioRecorder

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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()
      • 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()
      • averagePowerForChannel

        public float averagePowerForChannel​(long channelNumber)
        returns average power in decibels for a given channel
      • currentTime

        public double currentTime()
        get the current time of the recording - only valid while recording
      • delegate

        public AVAudioRecorderDelegate delegate()
        the delegate will be sent messages from the AVAudioRecorderDelegate protocol
      • deleteRecording

        public boolean deleteRecording()
        delete the recorded file. recorder must be stopped. returns NO on failure.
      • deviceCurrentTime

        public double deviceCurrentTime()
        get the device current time - always valid
      • format

        public AVAudioFormat format()
        this object is fully valid only when prepareToRecord has been called
      • initWithURLFormatError

        public AVAudioRecorder initWithURLFormatError​(NSURL url,
                                                      AVAudioFormat format,
                                                      org.moe.natj.general.ptr.Ptr<NSError> outError)
        The file type to create can be set through the corresponding settings key. If not set, it will be inferred from the file extension. Will overwrite a file at the specified url if a file exists.
      • initWithURLSettingsError

        public AVAudioRecorder initWithURLSettingsError​(NSURL url,
                                                        NSDictionary<java.lang.String,​?> settings,
                                                        org.moe.natj.general.ptr.Ptr<NSError> outError)
        The file type to create can be set through the corresponding settings key. If not set, it will be inferred from the file extension. Will overwrite a file at the specified url if a file exists.
      • isMeteringEnabled

        public boolean isMeteringEnabled()
        turns level metering on or off. default is off.
      • setMeteringEnabled

        public void setMeteringEnabled​(boolean value)
        turns level metering on or off. default is off.
      • isRecording

        public boolean isRecording()
        is it recording or not?
      • pause

        public void pause()
        pause recording
      • peakPowerForChannel

        public float peakPowerForChannel​(long channelNumber)
        returns peak power in decibels for a given channel
      • prepareToRecord

        public boolean prepareToRecord()
        creates the file and gets ready to record. happens automatically on record.
      • record

        public boolean record()
        start or resume recording to file.
      • recordAtTime

        public boolean recordAtTime​(double time)
        start recording at specified time in the future. time is an absolute time based on and greater than deviceCurrentTime.
      • recordAtTimeForDuration

        public boolean recordAtTimeForDuration​(double time,
                                               double duration)
        record a file of a specified duration starting at specified time. time is an absolute time based on and greater than deviceCurrentTime.
      • recordForDuration

        public boolean recordForDuration​(double duration)
        record a file of a specified duration. the recorder will stop when it has recorded this length of audio
      • setDelegate_unsafe

        public void setDelegate_unsafe​(AVAudioRecorderDelegate value)
        the delegate will be sent messages from the AVAudioRecorderDelegate protocol
      • setDelegate

        public void setDelegate​(AVAudioRecorderDelegate value)
        the delegate will be sent messages from the AVAudioRecorderDelegate protocol
      • settings

        public NSDictionary<java.lang.String,​?> settings()
        these settings are fully valid only when prepareToRecord has been called
      • stop

        public void stop()
        stops recording. closes the file.
      • updateMeters

        public void updateMeters()
        call to refresh meter values
      • url

        public NSURL url()
        URL of the recorded file