                 outASBD.mBitsPerChannel     = 0
                 outASBD.mReserved           = 0
                 
-//                #if os(macOS)
-                    let status = AudioConverterNew(&inASBD, &outASBD, &audioConverter)
-                    if status != noErr { print("Failed to setup converter:", status) }
-//                #else
-//                if var descriptor = self.getAudioClassDescription(with: kAudioFormatMPEG4AAC,
-//                                                                  from: kAppleSoftwareAudioCodecManufacturer) {
-//
-//                    let status = AudioConverterNewSpecific(&inASBD,
-//                                                           &outASBD,
-//                                                           1,
-//                                                           &descriptor,
-//                                                           &audioConverter)
-//                    if status != noErr { print("Failed to setup converter:", status) }
-//
-//                }
-//                #endif
-
+                let status = AudioConverterNew(&inASBD, &outASBD, &audioConverter)
+                if status != noErr { print("Failed to setup converter:", status) }
             }
         }
     }

            outBuffer[0].mDataByteSize = self.pcmBufferSize
            outBuffer[0].mData = UnsafeMutableRawPointer.allocate(bytes: Int(self.pcmBufferSize), alignedTo: 0)
            
//            var outBuffer                      = AudioBufferList()
//            outBuffer.mNumberBuffers           = 1
//            outBuffer.mBuffers.mNumberChannels = 1
//            outBuffer.mBuffers.mDataByteSize   = 1024
        
            var ioOutputDataPacketSize: UInt32 = 1
        
            let status = AudioConverterFillComplexBuffer(audioConverter,

    private var audioConverter: AudioConverterRef?
    fileprivate var aacBuffer: [UInt8] = []
    fileprivate var aacBufferSize: UInt32
    private var pcmBuffer: [UInt8]     = []
    private var pcmBufferSize: UInt32
    
    fileprivate var fillComplexCallback: AudioConverterComplexInputDataProc = { (inAudioConverter, 
