var audioConverter : AudioConverterRef = nil
audioConverter = AudioConverterRef.init()
So basically I have the code above found from this StackOverflow answer that is using a previous version of Swift. Now in Swift 3.0 however the above initializer for AudioConverterRef
is not available.
I noticed that the AudioConverterRef
is a reference to an audio converter object, which I suppose is an AVAudioConverter
.
So, the short question would be how would I write the above code in Swift 3.0? And the longer question would be what are the uses of creating an AudioConverterRef
that just references an AVAudioConverter
? Aren't all variables just reference to an object?