AKAbstractPlayer

open class AKAbstractPlayer : AKNode

Psuedo abstract base class for players that wish to use AKFader based automation.

  • Since AVAudioEngineManualRenderingMode is only available in 10.13, iOS 11+, this enum duplicates it

    See more

    Declaration

    Swift

    public enum RenderingMode
  • Will return whether the engine is rendering offline or realtime

    Declaration

    Swift

    public var renderingMode: RenderingMode { get }
  • Holds characteristics about the fade options.

    Declaration

    Swift

    public var fade: AKAbstractPlayer.Fade
  • Holds characteristics about the loop options.

    Declaration

    Swift

    public var loop: AKAbstractPlayer.Loop
  • The underlying gain booster which controls fades as well. Created on demand.

    Declaration

    Swift

    @objc
    public var faderNode: AKFader?
  • Declaration

    Swift

    @objc
    public var stopEnvelopeTime: Double { get set }
  • Amplification Factor, in the range of 0.0002 to ~

    Declaration

    Swift

    @objc
    public var gain: Double { get set }
  • Get or set the start time of the player.

    Declaration

    Swift

    @objc
    open var startTime: Double { get set }
  • Get or set the end time of the player.

    Declaration

    Swift

    @objc
    open var endTime: Double { get set }
  • Declaration

    Swift

    @objc
    open var isLooping: Bool
  • true if any fades have been set

    Declaration

    Swift

    @objc
    open var isFaded: Bool { get }
  • Declaration

    Swift

    @objc
    open var duration: Double { get }
  • Declaration

    Swift

    @objc
    open var sampleRate: Double { get }
  • Declaration

    Swift

    public func createFader()
  • Declaration

    Swift

    public func resetFader()
  • Declaration

    Swift

    public func fadeOut(with time: Double)
  • Declaration

    Swift

    open override func detach()