AKClip

@objc public protocol AKClip: class

A protocol containing timing information for scheduling audio clips in a timeline. All properties are time values in seconds, relative to a zero based timeline.

  • The time in the timeline that the clip should begin playing.

    Declaration

    Swift

    var time: Double
  • The offset into the clip’s audio (where to start playing from within the clip).

    Declaration

    Swift

    var offset: Double
  • The duration of playback.

    Declaration

    Swift

    var duration: Double
  • overlaps(_:) Extension method

    Returns true is overlaps other clip.

    Declaration

    Swift

    public func overlaps(_ otherClip: AKClip) -> Bool
  • isValid Extension method

    Default implementation is very basic. Implementers of AKClip should implement this to ensure that enough information is available to ensure playback (eg. source file exists)

    Declaration

    Swift

    public var isValid: Bool
  • endTime Extension method

    Convenience to get clip end time.

    Declaration

    Swift

    public var endTime: Double