Calling MusicDeviceMIDIEvent from the audio unit's render thread
问题 There's one thing I don't understand about MusicDeviceMIDIEvent . In every single example I ever seen (searched Github and Apple examples) it was always used from the main thread. Now, in order to use the sample offset parameter the documentation states: inOffsetSampleFrame: If you are scheduling the MIDI Event from the audio unit's render thread, then you can supply a sample offset that the audio unit may apply when applying that event in its next audio unit render. This allows you to