Tag Archives: AVMIDIPlayer

Swift 2: AVFoundation to play audio or MIDI

Swift Language

Swift AVFoundation There are many ways to play sound in iOS. Core Audio has been around for a while and it is very powerful. It is a C API, so using it from Objective-C and Swift is possible, but awkward. Apple has been moving towards a higher level API with AVFoundation. Here I will summarize […]

Posted in Core MIDI, Swift | Also tagged , | 13 Responses

tvOS: playing audio

Playing MIDI on tvOS According to Apple’s App Programming Guide for tvOS, AVFoundation is supported in tvOS. Groovy! Let’s use AVMIDIPlayer to play a file! Set up Result Summary Update Resources Set up Table of Contents AVMIDIPlayer’s init func wants two URLs: one to a MIDI file and another to a SoundFont or DLS file. […]

Posted in MIDI, tvOS | Also tagged | 2 Responses