AUAudioFilePlayer and callback when playing finished

Hi,


I am using AUAudioFilePlayer (kAudioUnitSubType_AudioFilePlayer subtype) to play media file in Audio Graph. I read technical note https://developer.apple.com/library/content/qa/qa1786/_index.html and implemented audio playing according this. However, I have problem to check, when audio file finished playing. It seems, that callback of ScheduledAudioFileRegion (mCompletionProc) is not called, when playing finished, but when audio file is processed. Is there any way, how to be notified, when playback is finished?


Thanks,


Mildi