Class AVAudioPlayer

  • All Implemented Interfaces:
    NSObjectProtocol, org.robovm.objc.ObjCProtocol

    public class AVAudioPlayer
    extends NSObject
    Since:
    Available in iOS 2.2 and later.
    • Method Detail

      • isPlaying

        public boolean isPlaying()
      • getNumberOfChannels

        public long getNumberOfChannels()
      • getDuration

        public double getDuration()
      • getUrl

        public NSURL getUrl()
      • getData

        public NSData getData()
      • getPan

        public float getPan()
        Since:
        Available in iOS 4.0 and later.
      • setPan

        public void setPan​(float v)
        Since:
        Available in iOS 4.0 and later.
      • getVolume

        public float getVolume()
      • setVolume

        public void setVolume​(float v)
      • isRateEnabled

        public boolean isRateEnabled()
        Since:
        Available in iOS 5.0 and later.
      • setRateEnabled

        public void setRateEnabled​(boolean v)
        Since:
        Available in iOS 5.0 and later.
      • getRate

        public float getRate()
        Since:
        Available in iOS 5.0 and later.
      • setRate

        public void setRate​(float v)
        Since:
        Available in iOS 5.0 and later.
      • getCurrentTime

        public double getCurrentTime()
      • setCurrentTime

        public void setCurrentTime​(double v)
      • getDeviceCurrentTime

        public double getDeviceCurrentTime()
        Since:
        Available in iOS 4.0 and later.
      • getNumberOfLoops

        public long getNumberOfLoops()
      • setNumberOfLoops

        public void setNumberOfLoops​(long v)
      • getSettings

        public AVAudioSettings getSettings()
        Since:
        Available in iOS 4.0 and later.
      • getFormat

        public AVAudioFormat getFormat()
        Since:
        Available in iOS 10.0 and later.
      • isMeteringEnabled

        public boolean isMeteringEnabled()
      • setMeteringEnabled

        public void setMeteringEnabled​(boolean v)
      • prepareToPlay

        public boolean prepareToPlay()
      • play

        public boolean play()
      • playAtTime

        public boolean playAtTime​(double time)
        Since:
        Available in iOS 4.0 and later.
      • pause

        public void pause()
      • stop

        public void stop()
      • setVolume

        public void setVolume​(float volume,
                              double duration)
        Since:
        Available in iOS 10.0 and later.
      • updateMeters

        public void updateMeters()
      • getPeakPowerForChannel

        public float getPeakPowerForChannel​(long channelNumber)
      • getAveragePowerForChannel

        public float getAveragePowerForChannel​(long channelNumber)