| ▲ | 0gs 3 hours ago | |||||||||||||
wow hacker news wins again. i am going to fix these in my music player. i think 2 & 3 are chill already... and i can totally fix 1. thanks! | ||||||||||||||
| ▲ | WalterBright an hour ago | parent [-] | |||||||||||||
To implement shuffle play, it is not necessary to actually shuffle filenames in memory. Just generate a random number modulo the number of files, and then play that file. That way your program can shuffle play any number of files, no worries about running out of memory. By the way, the Roku box has a "media player" app in it by default, and it cannot shuffle play more than a handful of files. Completely useless. | ||||||||||||||
| ||||||||||||||