BufferLength

@objc
public enum BufferLength : Int

Enum of available buffer lengths from Shortest: 2 power 5 samples (32 samples = 0.7 ms @ 44100 kz) to Longest: 2 power 12 samples (4096 samples = 92.9 ms @ 44100 Hz)

  • Shortest: 32 samples = 0.7 ms @ 44100 kz

    Declaration

    Swift

    case shortest = 5
  • Very Short: 64 samples

    Declaration

    Swift

    case veryShort = 6
  • Short: 128 samples

    Declaration

    Swift

    case short = 7
  • Medium: 256 samples

    Declaration

    Swift

    case medium = 8
  • Long: 512 samples

    Declaration

    Swift

    case long = 9
  • Very Long: 1024 samples

    Declaration

    Swift

    case veryLong = 10
  • Huge: 2048 samples

    Declaration

    Swift

    case huge = 11
  • Longest: 4096 samples = 92.9 ms @ 44100 Hz

    Declaration

    Swift

    case longest = 12
  • The buffer Length expressed as number of samples

    Declaration

    Swift

    public var samplesCount: AVAudioFrameCount { get }
  • The buffer Length expressed as a duration in seconds

    Declaration

    Swift

    public var duration: Double { get }