| Summary: | random ordering does not work correctly | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Michal Hlavinka <mhlavink> |
| Component: | audacious | Assignee: | Michael Schwendt <bugs.michael> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 17 | CC: | atkac, bugs.michael |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-04-12 19:57:36 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Michal Hlavinka
2012-04-02 16:35:58 UTC
Could you attach file "$HOME/.config/audacious/playlist-state"? What you describe sounds to me as if you may have listened to those 30 tracks before activating "Shuffle" mode. "Shuffle" is not brute-force random of all playlist entries, but a more sophisticated implementation where Previous/Next continues to work for the played sequence of tracks. It marks every played track with a number and picks a random track from the remaining tracks. So, you would need to press "Next" 1020 times for the sequence to repeat. playlist-state file isn't used anymore compared with F-16, but the shuffle implementation hasn't changed. Source file src/audacious/playlist-new.c (search for "shuffle_"). Random selection of previously unplayed tracks is in line 2079, "rand() % choice" where "choice" is the number of unplayed tracks. Seems you are right. There is some kind of list. I chose 900th song and with random=off hit next till the end of the playlist. Then I turned random=on again. Now, every 10th song should have number above 900, but in next 100 (+-) there were only those with lower numbers. So it seems it works the way it was designed after all. I thought the list gets cleared once you turn random on/off (at least with random off, it won't skip songs it played already I guess). Anyway, I can achieve the behavior I want by randomizing the list and starting with 1st song together with random=off (restarting the application works too). You can close this bug report. Reporters can close their bugs, too. ;) |