Class AVMIDIPlayer

  • All Implemented Interfaces:
    NSObject

    public class AVMIDIPlayer
    extends NSObject
    AVMIDIPlayer A player for music file formats (MIDI, iMelody).
    • Constructor Detail

      • AVMIDIPlayer

        protected AVMIDIPlayer​(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()
      • currentPosition

        public double currentPosition()
        [@property] currentPosition The current playback position in seconds Setting this positions the player to the specified time. No range checking on the time value is done. This can be set while the player is playing, in which case playback will resume at the new time.
      • duration

        public double duration()
        [@property] duration The length of the currently loaded file in seconds.
      • initWithContentsOfURLSoundBankURLError

        public AVMIDIPlayer initWithContentsOfURLSoundBankURLError​(NSURL inURL,
                                                                   NSURL bankURL,
                                                                   org.moe.natj.general.ptr.Ptr<NSError> outError)
        initWithContentsOfURL:soundBankURL:error: Create a player with the contents of the file specified by the URL. 'bankURL' should contain the path to a SoundFont2 or DLS bank to be used by the MIDI synthesizer. For OSX it can be set to nil for the default, but for iOS it must always refer to a valid bank file.
      • initWithDataSoundBankURLError

        public AVMIDIPlayer initWithDataSoundBankURLError​(NSData data,
                                                          NSURL bankURL,
                                                          org.moe.natj.general.ptr.Ptr<NSError> outError)
        initWithData:soundBankURL:error: Create a player with the contents of the data object 'bankURL' should contain the path to a SoundFont2 or DLS bank to be used by the MIDI synthesizer. For OSX it can be set to nil for the default, but for iOS it must always refer to a valid bank file.
      • isPlaying

        public boolean isPlaying()
        [@property] playing Indicates whether or not the player is playing
      • prepareToPlay

        public void prepareToPlay()
        prepareToPlay Get ready to play the sequence by prerolling all events Happens automatically on play if it has not already been called, but may produce a delay in startup.
      • rate

        public float rate()
        [@property] rate The playback rate of the player 1.0 is normal playback rate. Rate must be > 0.0.
      • setCurrentPosition

        public void setCurrentPosition​(double value)
        [@property] currentPosition The current playback position in seconds Setting this positions the player to the specified time. No range checking on the time value is done. This can be set while the player is playing, in which case playback will resume at the new time.
      • setRate

        public void setRate​(float value)
        [@property] rate The playback rate of the player 1.0 is normal playback rate. Rate must be > 0.0.
      • stop

        public void stop()
        stop Stop playing the sequence.