How to get the Android Runtime music playlist in semi-random order??
Hi clickers,
Does anyone have an idea how I would be able to get a random music playlist that would play over all frames...
Here's what I need it to do exactly...
Track1 should always be first.
Track2 and Track3 should be randomly selected but then followed by the other.
So in conclusion I need the songs to always play in 1 of 2 random patterns...
Pattern 1:
track 1, track 2, track 3, then loop this order...
Pattern 2:
track 1, track 3, track 2, then loop this order...
CURRENTLY, for the time being... I have two .ogg files with the tracks placed in order within the ogg file... all 3 songs in both patterns and I'm just using RRandom (1, 2) to select ogg file 1 or 2:
ogg file 1:
track 1, track 2, track 3 (then I have it loop 100x)
ogg file 2:
track 1, track 3, track 2 (then I have it loop 100x)
this currently gives me the order that I need but since I have two LARGE ogg files... instead of 3 single track files... I am finding my .APK file size to be 51MB and I know I can reduce it to about 43MB if I can find a solution for the above mentioned question...
Am I looking too much into this and 7MB file size shouldn't matter anyway?
If you've released an Android App before and have experience with this then your feedback would be much appreciated. Thanks guys!