Hi I am trying to convert following Objective-C code to Swift:
EZAudioFile *audioFile = [EZAudioFile audioFileWithURL:NSURL]; //required type NSURL
[self.player playAudioFile:audioFile];
But I am unable to make it work.
let audioFile = EZAudioFile.url(EZAudioFile) //required type EZAudioFile, so I am unable to pass the NSURL of the audio file here.
player.play()
Error is : Cannot convert value of type 'NSURL' to expected argument type 'EZAudioFile'
The above objective-C code is referenced from here : EZAudio Example:Record File