My app has stopped working after recent upgrade of AudioKit
from 3.7.1 to 4.0.1.
Here is my code:
sequencer = AKSequencer(filename: myMidi)
for i in 0..<popCount {
//start Audio
sequencer!.avTracks[i].destinationAudioUnit = gPOPs[i].samplePlayer.samplerUnit
}
And here is the error message I get:
Value of type '
AKSequencer
' has no member 'avTracks
'
Just wondering if anyone can help me with understanding what has changed and how I can fix it.
EDIT
Also tried:
sequencer!.tracks[i].destinationAudioUnit = gPOPs[i].samplePlayer.samplerUnit
And now get this error message:
Value of type '
AKMusicTrack
' has no member 'destinationAudioUnit
'
And tried:
sequencer!.tracks[i].internalMusicTrack = gPOPs[i].samplePlayer.samplerUnit
which gives the following error:
Cannot assign value of type '
AVAudioUnitSampler
' to type 'MusicTrack?
' (aka 'Optional<OpaquePointer>
')