             return -1
         }
         
+        self.pcmBuffer.removeFirst()
         ioNumberDataPackets.pointee = 1
         return noErr
     }

                                                         outBuffer.unsafeMutablePointer,
                                                         nil)
        
            if status == noErr {
                print("NO ERR")
                let aacPayload = Array(self.aacBuffer[0..<Int(outBuffer[0].mDataByteSize)])
                onComplete(aacPayload, noErr)
            } else {
                print("Error converting buffer:", status)
                onComplete(nil, status)
            }

                ioData.pointee.mBuffers.mDataByteSize = pcmBufferSize
            }
            
        } else {
            ioNumberDataPackets.pointee = 0
            return -1
