Class AVMIDIPlayer

  • All Implemented Interfaces:
    NSObject

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

      • AVMIDIPlayer

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static AVMIDIPlayer 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()
      • 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.
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • duration

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

        public static long hash_static()
      • initWithContentsOfURLSoundBankURLError

        public AVMIDIPlayer initWithContentsOfURLSoundBankURLError​(@NotNull
                                                                   @NotNull NSURL inURL,
                                                                   @Nullable
                                                                   @Nullable NSURL bankURL,
                                                                   @Nullable
                                                                   @Nullable 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​(@NotNull
                                                          @NotNull NSData data,
                                                          @Nullable
                                                          @Nullable NSURL bankURL,
                                                          @Nullable
                                                          @Nullable 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.
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isPlaying

        public boolean isPlaying()
        [@property] playing Indicates whether or not the player is playing
      • 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)
      • play

        public void play​(@Nullable
                         @Nullable AVMIDIPlayer.Block_play completionHandler)
        play: Play the sequence.
      • 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.
      • resolveClassMethod

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

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • 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.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • stop

        public void stop()
        stop Stop playing the sequence.
      • 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.