MathewWi / wiiflow

Automatically exported from code.google.com/p/wiiflow
0 stars 0 forks source link

Change the next song of the music #243

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Would you mind change to next song put in music of wiiflow

Original issue reported on code.google.com by Digital....@gmail.com on 19 Jul 2010 at 4:04

GoogleCodeExporter commented 9 years ago
thats a very good idea:D its very annoying to listen to 1 song looping

Original comment by felix.ni...@gmail.com on 19 Jul 2010 at 9:06

GoogleCodeExporter commented 9 years ago
youll get over it... try getting a nice song that doesnt get annoying like 
Homebrew Browser's

Original comment by Gamewiza...@gmail.com on 18 Aug 2010 at 3:33

GoogleCodeExporter commented 9 years ago
This option is most easy. I think so, but is good idea when you watching the 
menu of wiiflow, however is a suggestion. thanks for all team of open wiiflow I 
love you app(wiiflow) is the best

Original comment by Digital....@gmail.com on 18 Aug 2010 at 3:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
LOL... how long do you expect to be in wiiflow? it loads games and channels

Original comment by Gamewiza...@gmail.com on 18 Aug 2010 at 5:59

GoogleCodeExporter commented 9 years ago
it might be easy but its pointless

Original comment by Gamewiza...@gmail.com on 18 Aug 2010 at 6:00

GoogleCodeExporter commented 9 years ago
when i for example install games i think its annoying to listen to the same 
song over and over again

Original comment by felix.ni...@gmail.com on 23 Aug 2010 at 3:04

GoogleCodeExporter commented 9 years ago
I can add when it is useful.
When your downloading boxcovers through wifi
When you are installing a game
It would be really cool if it actually randomly started any song that is in the 
folder. So when you start Wiiflow new songs start up.

Original comment by vio...@gmail.com on 1 Sep 2010 at 2:52

GoogleCodeExporter commented 9 years ago

Original comment by Miigotu on 1 Sep 2010 at 4:18

GoogleCodeExporter commented 9 years ago
Quote: It would be really cool if it actually randomly started any song that is 
in the folder. So when you start Wiiflow new songs start up.

That's already possible (since a pretty long time). Add randomize_music=yes to 
wiiflow.ini for this to work. Skipping to the next song, however, will not be 
implemented. Wiiflow will make a list of songs in your music directory. It will 
optionally randomize those, and it will play these songs in that order.

Original comment by r-...@live.com on 1 Sep 2010 at 8:43

GoogleCodeExporter commented 9 years ago
cool:D didnt know about that function lol

Original comment by felix.ni...@gmail.com on 1 Sep 2010 at 1:50

GoogleCodeExporter commented 9 years ago
I can't seem to get the randomize_music=yes to work, I've entered it in the 
GENERAL section of the wiiflow.ini file and checked and double checked it. 

I've tried this with the version I had installed (don't remember which one) and 
after updating to the very latest version (v2.1 r228) from within WiiFlow 
itself. 

The wiiflow.ini file is loaded off the SD card after I set the 
"data_on_usb=no", so I know I'm not simply being stupid.

Any ideas would be very helpful. 

Original comment by shivkaus...@gmail.com on 1 Oct 2010 at 1:07

GoogleCodeExporter commented 9 years ago
hmm, I would like to ditto this shivkaushal, 

I didn't want to say anything because I thought it was just me.

I know for sure that I am using the correct wiiflow.ini file.

What is meant to happen is if you have more than one song and you start 
wiiflow, different songs will start each time you start wiiflo. That is correct?

Original comment by vio...@gmail.com on 1 Oct 2010 at 3:32

GoogleCodeExporter commented 9 years ago
I have confirmed the fault. 

I compiled WiiFlow from source and it doesn't work. Looking in menu.cpp, even 
if you force the call to random_shuffle every time regardless of config, then 
it still playes in the same order. 

It appears that this is because the random number generator isn't seeded 
correctly, so you always get the same shuffle happening. 

If you add the following:

            srand ( unsigned ( time (NULL) ) );

to the top of the CMenu::_searchMusic method in menu.cpp, then all works as 
expected.

Does this need to be filed as a separate issue report?

Shiv

Original comment by shivkaus...@gmail.com on 1 Oct 2010 at 10:57

GoogleCodeExporter commented 9 years ago
Classical problem. I thought I had seeded the random number generator, but I 
was mistaken. I've added your code to the _searchMusic method. Thank you.

To answer the other question: in fact this is a seperate issue. The original 
issue is about skipping through the songs (afaik).

Original comment by r-...@live.com on 1 Oct 2010 at 1:22