Tracks from user library play out of order, macOS 14

I am working on an app to play music from the users' library on macOS. I'm not using catalyst btw.

Whenever I try to play the track from an album I run into an issue where the track play out of order.

I set the queue like this: musicPlayer.queue = ApplicationMusicPlayer.Queue(album: album, startingAt: tracks[index])

Where album is an Album instance that was retrieved through a library request MusicLibraryRequest<MusicKit.Album> And musicPlayer is a reference to ApplicationMusicPlayer.shared

When I print out the entries variable the tracks are in the correct order.

(I'm using Xcode 15.1 and macOS 14.2)

Am I doing something obviously wrong? Or is this a known issue?

Thanks in advance,

Daan

I'm seeing this too. I logged it as FB13490780 back in December.

Tracks from user library play out of order, macOS 14
 
 
Q