Swift3 AudioToolbox: PCM playback how to AudioQueueAllocateBuffer?
问题 I am following https://github.com/AlesTsurko/LearningCoreAudioWithSwift2.0/tree/master/CH05_Player to playback a frequency but it is with Swift2. Get microphone input using Audio Queue in Swift 3 has resolved many of the issues but it is for recording. I am stuck at allocating a buffer to audio queue var ringBuffers = [AudioQueueBufferRef](repeating:nil, count:3) AudioQueueAllocateBuffer(inQueue!, bufferSize, &ringBuffers[0]) It gives an error main.swift:152:29: Expression type '