Originally Posted by
Barone
Thanks for your quick and kind response, Stef.
About the shuffle, I was stupid enough to not notice it was actually a randomizer.
But, maybe, it would be better to have a proper shuffle function which would work as an "on/off" switch applied to the originally ordered list and just "randomizing" the jumps as most players usually behave.
I understand that it maybe problematic to implement a shuffler method but I was thinking about something like this:
- The display ordering of the music list never changes, regardless of shuffle mode status.
- You have two lists with music tracks indexes: List A: read-only, which will always hold the indexing list which is used by the display method and which is consumed when the shuffle mode is off; List B: which starts off with the same content of List A but can be modified by the randomizer, to be consumed when the shuffle mode is on.
- When the shuffle mode is enabled by the user, you put the current selected/playing track as the first index in list B and randomize the rest of it. From them on, when the user pushes PREVIOUS or NEXT track, or the actual track reaches its end, you'll always be consuming the List B sequentially.
IDK if it's any different of what you have implemented, or any feasible or any good in your opinion but that's what I had in mind.