AKFileClip

open class AKFileClip: NSObject, FileClip

A FileClip implementation, used by AKClipPlayer.

  • The audio file that will be read.

    Declaration

    Swift

    open var audioFile: AKAudioFile
  • The time in the timeline that the clip should begin playing.

    Declaration

    Swift

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

    Declaration

    Swift

    open var offset: Double
  • The duration of playback.

    Declaration

    Swift

    open var duration: Double
  • Create a new file clip.

    Declaration

    Swift

    public init(audioFile: AKAudioFile,
                    time: Double = 0,
                    offset: Double = 0,
                    duration: Double = 0)

    Parameters

    audioFile

    The audio file that will be read.

    time

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

    offset

    The offset into the clip’s audio (where to start playing from within the clip).

    duration

    The duration of playback.

  • Init a file clip from a url with time and offset at zero, and duration set to file duration.

    Declaration

    Swift

    public convenience init?(url: URL)