 class ADTSParser {
 
     let pcmFormat: AVAudioFormat
-    let bufferDuration: TimeInterval
 
     weak var delegate: ADTSParserDelegate?
 

            let audioBufferList: AudioBufferList
            let packetDescriptions: UnsafeMutableBufferPointer<AudioStreamPacketDescription>

            init(audioBuffers: UnsafeMutableBufferPointer<AudioBuffer>, packetDescriptions: UnsafeMutableBufferPointer<AudioStreamPacketDescription>) {
                packetCount = UInt32(packetDescriptions.count)
                audioBufferList = AudioBufferList(mNumberBuffers: UInt32(audioBuffers.count), mBuffers: audioBuffers[0])
                self.packetDescriptions = packetDescriptions
            }
        }

        let context = InputProcContext(audioBuffers: audioBuffers, packetDescriptions: packetDescriptions)
        let contextPointer = Unmanaged.passUnretained(context).toOpaque()

        let inputDataProc: AudioConverterComplexInputDataProc


    private var framesPerPacket: Int = 0

    /// Create a new ADTS parser.
    ///
    /// - Parameter pcmFormat: Format of the converted buffers provided
    ///   to the delegate.
    ///
    /// - Precondition: `pcmFormat` should be a standard format.

    init(pcmFormat: AVAudioFormat) {
        precondition(pcmFormat.isStandard, "This class only supports conversion to PCM")

        self.pcmFormat = pcmFormat

        let context = Unmanaged.passUnretained(self).toOpaque()

