AVAudioPlayer.play() works but AVAudioPlayerNode.play() fails
问题 I have the following Swift playground code that plays an audio file using AVAudioPlayerNode. import AVFoundation import Foundation NSSetUncaughtExceptionHandler { exception in print("Exception thrown: \(exception)") } var filePath = "/Users/fractor/Desktop/TestFile.mp3" let file : AVAudioFile do { file = try AVAudioFile(forReading: URL(fileURLWithPath: filePath)) } catch let error { print(error.localizedDescription) throw error } let audioEngine = AVAudioEngine() let playerNode =