Global random is consistently playing same songs

Please report any bug found here

Global random is consistently playing same songs

Postby flup2017 » 26 Dec 2017, 14:15

Hi - great work on RU BTW.

RuneOs: 0.3-beta
RuneUI: 1.3-beta
Hw-env: RaspberryPi 2

I am having a problem with Global Random on my RPI3 (not 2 as listed above). It definitely adds a new song to the queue in the expected manner. Unfortunately it seems to draw the same songs in the same order every time. I don't know how it's implemented but it might be that the seed for the random number generator is fixed (rather than extracted from say the system clock or thermal noise or something like that). The only workaround (which I'm not 100% sure of yet) is to leave the system powered up all the time, which may stop the random number generator going back to the start of its list.

My default method of listening is almost exclusively letting the machine decide which music to play, so I really notice it. I can imagine it becoming a problem for anyone who tries global random however. So far I've only found one other reference to it on this forum.

Thanks
flup2017
 
Posts: 5
Joined: 26 Dec 2017, 14:00

Re: Global random is consistently playing same songs

Postby hondagx35 » 26 Dec 2017, 15:42

Hi flup2017,

you can try this image it uses ashuffle to randomly play your music.
Best way to achieve this is to make a playlist with all (or some) music files from your library.
Ashuffle can add them randomly to the end of the queue.
Image

on my RPI3 (not 2 as listed above).

Nothing to worry about, because Rune uses the same image for both devices.

Frank
User avatar
hondagx35
 
Posts: 3024
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Global random is consistently playing same songs

Postby wpb52 » 29 Dec 2017, 17:27

Hi @ all
I'm, running Rune on a RPi3 with above recommended version and a Samsung Tab2
and I have similar problems.

With my in Rune created playlist (Test 1, 4 songs) I figured out:

loop
>> Start: clear queue (step by step)
>> find playlist

>> Randomly add songs to queue > "Playing radomly from Test1.m3u"> nothing happens > pressed PLAY nothing happens
(MPD emty queue)
>> Replace the queue > OK queue was replaced > a song can be started *
>> Add to queue > all (4) songs were added (as estimated) > a song can be started *

* consistently playing the same song

Wolfgang
User avatar
wpb52
 
Posts: 6
Joined: 26 Dec 2017, 18:03

Re: Global random is consistently playing same songs

Postby hondagx35 » 29 Dec 2017, 17:59

Hi Wolfgang,

Randomly add songs to queue > "Playing radomly from Test1.m3u"> nothing happens

It takes a few seconds until ashuffle starts to play the first song.

If all songs from your playlist are added it loops and starts at the beginning.
If you stop ashuffle and use the same playlist again with "randomly add songs", you will get a different order.

In the second (more interesting) mode, ashuffle will wait until the last song in the queue has finished playing, at which point it will add another song to the queue. In this creates a 'stream of music' where songs will be continuously played, at random, to infinity. Additionally, since ashuffle only adds one song at a time, and only adds that song once the last song in the playlist has finished playing, you still retain control over your queue. This way, you can add some song you want to hear to the queue, and the random songs will simply continue afterwards.

Additionally, ashuffle uses mpd's idle functionality so it won't drain cpu polling to check if the current song has advanced.


Frank
User avatar
hondagx35
 
Posts: 3024
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Global random is consistently playing same songs

Postby wpb52 » 01 Jan 2018, 13:41

Danke Frank
und
ein gutes 2018 für alle.

Happy New Year to all.

Wolfgang
User avatar
wpb52
 
Posts: 6
Joined: 26 Dec 2017, 18:03

support RuneAudio Donate with PayPal


Return to Bug report

Who is online

Users browsing this forum: No registered users and 1 guest