![]() ![]()
Print("Error starting engine: \(error.localizedDescription)") BUILD A SIMPLE AUDIO PLAYER USING SWIFT FOR MAC CODEThe code below is a slight reworking: import UIKitĮnnect(playerNode, to: mixerNode!, format: mixerNode!.outputFormat(forBus: 0)) The section on AVAudioEngine turned out to be very useful. (Setting the IO buffer duration as suggested by the accepted answer here didn't seem to help, unfortunately.) I also tried AudioToolbox, but I found that the resulting performance was pretty much the same - a clearly perceptible delay between the relevant user action and the audio.Īfter scouring the internet a bit more, I came across this: I spent an afternoon trying to solve this issue by playing around with AVAudioPlayer
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |