Package org.robovm.apple.avfoundation
Class AVAudioPlayer
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.avfoundation.AVAudioPlayer
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class AVAudioPlayer extends NSObject
- Since:
- Available in iOS 2.2 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AVAudioPlayer.AVAudioPlayerPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description AVAudioPlayer()
AVAudioPlayer(NSData data)
AVAudioPlayer(NSData data, java.lang.String utiString)
protected
AVAudioPlayer(NSObject.Handle h, long handle)
protected
AVAudioPlayer(NSObject.SkipInit skipInit)
AVAudioPlayer(NSURL url)
AVAudioPlayer(NSURL url, java.lang.String utiString)
-
Method Summary
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
AVAudioPlayer
public AVAudioPlayer()
-
AVAudioPlayer
protected AVAudioPlayer(NSObject.Handle h, long handle)
-
AVAudioPlayer
protected AVAudioPlayer(NSObject.SkipInit skipInit)
-
AVAudioPlayer
public AVAudioPlayer(NSURL url) throws NSErrorException
- Throws:
NSErrorException
-
AVAudioPlayer
public AVAudioPlayer(NSData data) throws NSErrorException
- Throws:
NSErrorException
-
AVAudioPlayer
public AVAudioPlayer(NSURL url, java.lang.String utiString) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 7.0 and later.
-
AVAudioPlayer
public AVAudioPlayer(NSData data, java.lang.String utiString) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 7.0 and later.
-
-
Method Detail
-
isPlaying
public boolean isPlaying()
-
getNumberOfChannels
public long getNumberOfChannels()
-
getDuration
public double getDuration()
-
getDelegate
public AVAudioPlayerDelegate getDelegate()
-
setDelegate
public void setDelegate(AVAudioPlayerDelegate v)
-
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)
-
getChannelAssignments
public NSArray<AVAudioSessionChannelDescription> getChannelAssignments()
- Since:
- Available in iOS 7.0 and later.
-
setChannelAssignments
public void setChannelAssignments(NSArray<AVAudioSessionChannelDescription> v)
- Since:
- Available in iOS 7.0 and later.
-
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)
-
-