FAQ Database Discussion Community


AVAudioFile in Swift Playground results in “error -54”

swift,core-audio,swift-playground,avaudiofile
I decided to have a play with AVAudioPlayer in a Swift Playground. The following code works fine in a normal Swift project, but returns the following error when running it in a Playground (in the assistant editor): 2015-05-12 00:08:04.374 AVAudioFile[2481:141158] 00:08:04.374 ERROR: AVAudioFile.mm:266: AVAudioFileImpl: error -54 Here is the code:...