Has anyone else been having trouble with the shuffle function of their winamp 2.x?
I know I have, it will play only a few songs, and I will hear the same songs every few hours; which is substantial given my 60+ hour playlist. I got to thinking about it and came up with some ideas to improve on it. I am willing to code the ideas myself, I can write in VB, C++, and a few others.
First off though, I need to know what the current shuffling algorithm looks like, and how it is implemented.
For now though my idea is as follows:
use a random number generator to generate a number between 1 and the amount of songs in the playlist. This will require getting the total amount of songs in the playlist.
use a one-dimensional array to store the last 100 track numbers on the list that were played. The number of track numbers that it stores will have to be fine tuned for efficiency. Also, something with have to be done when a song is added to a list and the numbers are shifted around.
so then when shuffle is called it will check the number it selects against the array and select and keep selecting new tracks until it finds one that has not been played lately.
If anyone sees any holes in my logic, or if they see anywhere that it will fail, please let me know. If anyone has any ideas to improve it, or would like to help, also let me know.