You are browsing as a guest. Sign up (or log in) to start making projects!

Open comments for this post

9h 19m 25s logged

This took far longer than I wanted…
I had a lot of trouble getting WPF to play nicely with my playlist system! So I decided to just focus on getting a song queue working. Which took ages, mainly because I’m still learning WPF, XAML and its MVVM architecture, and I ultimately decided to get the core of the player working before worrying too much about UI, something I’m doing far too much.
Now mixtapes has an internal queue system (this won’t be editable in the final program i think?) that it pulls songs from, which currently it shows in its UI. The foundation for playlists (which is how users will actually add music and rearrange the playback order) still needs to be made (I struggled so much trying to figure out how to do this)…

Also, I got to solve a lot of problems caused by SDL running on a different thread :D. The code that handles UI changes when a song finishes is triggered by SDL directly, and that tries to modify the queue. The ListView displaying the queue relies on a CollectionUpdated event to know that the queue changed, but that event has to be invoked on the UI thread. Which sucks. I think I fixed it the proper way (something called a SynchronizationContext in the Queue) but I’m expecting to run into stuff like this a Lot more lmao.

0
1

Comments 0

No comments yet. Be the first!