summaryrefslogtreecommitdiff
path: root/apps/playlist.c
AgeCommit message (Collapse)Author
2002-08-28modified the playlist system slightly:Daniel Stenberg
playlist_peek() returns info relative the current index playlist_next() advances the index back or forth (this breaks the build, mpeg fixes are pending) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2022 a1c6a512-1295-4272-9138-f99709370657
2002-08-26When toggling shuffle from on to off while a playlist is playing, update the ↵Hardeep Sidhu
current playlist index to the new index of the current song git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1977 a1c6a512-1295-4272-9138-f99709370657
2002-08-23Removed typedefBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1958 a1c6a512-1295-4272-9138-f99709370657
2002-08-23playlist_next() now returns NULL on excessive 'step' amountsDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1940 a1c6a512-1295-4272-9138-f99709370657
2002-08-21play_list() is now modified to accept a playlist index that is eitherDaniel Stenberg
meant in the unshuffled list or in the shuffled. There's an extra parameter giving that info (which of course only makes sense when shuffle is enabled). This should make resume work with play-all-dir in shuffled mode. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1889 a1c6a512-1295-4272-9138-f99709370657
2002-08-20Now using lcd margins instead of a line offset for displaying status bar.Markus Braun
Needed to support fonts smaller than 8 pixels. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1823 a1c6a512-1295-4272-9138-f99709370657
2002-08-19When shuffle is ENABLED. And you press PLAY in a dir, the selected songDaniel Stenberg
is now the first song to get played. To do this, we first remember which song that was selected, shuffle the list and then find the selected song in the shuffled list and play that. This will have some interesting side effects if the song ends up for example last in the shuffled list when we consider not always doing repeat-all as then it'll reach the end of the playlist after one song. We could optionally put the selected song first in the playlist and then shuffle all the rest, as that would possibly be closer to what people will assume it will do. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1803 a1c6a512-1295-4272-9138-f99709370657
2002-08-16Added resume. Works in dirs and playlists, shuffled or not. Resumes ↵Björn Stenberg
mid-song, but press pause on players before you shutdown so they get a chance to store the position on disk. Recorders use RTC ram. Todo: Time display is wrong after mid-track resume and ffd/rew is not handled. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1787 a1c6a512-1295-4272-9138-f99709370657
2002-08-15Now we can have up to 400 files in a directoryLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1761 a1c6a512-1295-4272-9138-f99709370657
2002-08-13Gained about 128 KB buffer space by removing malloc() and the heapBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1726 a1c6a512-1295-4272-9138-f99709370657
2002-08-12Tell user when limits are reachedBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1692 a1c6a512-1295-4272-9138-f99709370657
2002-08-09Support double negative wrap (with a half nelson)Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1632 a1c6a512-1295-4272-9138-f99709370657
2002-08-08Allow reverse playlist wrap in repeat modeBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1626 a1c6a512-1295-4272-9138-f99709370657
2002-08-08Prevent negative playlist.indexBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1623 a1c6a512-1295-4272-9138-f99709370657
2002-08-08Fix for double-slash fixBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1614 a1c6a512-1295-4272-9138-f99709370657
2002-08-08Removed the extra slash between the dir and filename for relative pathsLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1608 a1c6a512-1295-4272-9138-f99709370657
2002-08-07Added status bar to file browser and wpsMarkus Braun
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1582 a1c6a512-1295-4272-9138-f99709370657
2002-08-07Changed playlist API againLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1575 a1c6a512-1295-4272-9138-f99709370657
2002-08-06RAM-based playlists addedLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1559 a1c6a512-1295-4272-9138-f99709370657
2002-08-02Magnus Holmgren's fix that now enables us to toggle shuffle on/off from theDaniel Stenberg
menu and it'll "take effect" immediately when needing to reload the playlist. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1526 a1c6a512-1295-4272-9138-f99709370657
2002-08-01support for relative paths in playlists by Brian King <brking@charter.net>Daniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1506 a1c6a512-1295-4272-9138-f99709370657
2002-07-22Slightly improved shuffle algorithm. Patch by Hardeep SidhuLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1397 a1c6a512-1295-4272-9138-f99709370657
2002-07-20Absolute playlists with backslashes now workLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1392 a1c6a512-1295-4272-9138-f99709370657
2002-07-17New vastly improved random algorithm: Mersenne TwisterBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1377 a1c6a512-1295-4272-9138-f99709370657
2002-07-05Relative path playlist patch by Mat PritchardLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1342 a1c6a512-1295-4272-9138-f99709370657
2002-06-27Now uses global_settings.playlist_shuffleBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1233 a1c6a512-1295-4272-9138-f99709370657
2002-06-27account for white space at the end of a filenameRobert Hak
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1225 a1c6a512-1295-4272-9138-f99709370657
2002-06-26Added next/previous trackBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1211 a1c6a512-1295-4272-9138-f99709370657
2002-06-17no time.h, no time() not even in simulatorsDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1040 a1c6a512-1295-4272-9138-f99709370657
2002-06-17Made playlist shuffle an option instead of an actionBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1031 a1c6a512-1295-4272-9138-f99709370657
2002-06-17Added backslash and drive letter supportBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1029 a1c6a512-1295-4272-9138-f99709370657
2002-06-15the playlist loader now ignores lines that start with # as they are meantDaniel Stenberg
to be "comments" and other secret magic stuff added by winamp etc git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1016 a1c6a512-1295-4272-9138-f99709370657
2002-06-13allow CRLF or LF or in fact just CR too as line separatorsDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@990 a1c6a512-1295-4272-9138-f99709370657
2002-06-13Cosmetic change to playlist loader progress displayBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@988 a1c6a512-1295-4272-9138-f99709370657
2002-06-13Loading playlists using 512 byte buffer. Added feedback display during load.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@987 a1c6a512-1295-4272-9138-f99709370657
2002-06-13Added playlist shuffle menu optionBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@986 a1c6a512-1295-4272-9138-f99709370657
2002-06-12uh, make sure we start with a slash when playing songsDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@967 a1c6a512-1295-4272-9138-f99709370657
2002-06-12fix multiple slash problemsDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@965 a1c6a512-1295-4272-9138-f99709370657
2002-06-11we now handle playlists in a block of 255 bytes instead of a single byte at ↵Robert Hak
a time git-svn-id: svn://svn.rockbox.org/rockbox/trunk@947 a1c6a512-1295-4272-9138-f99709370657
2002-06-11we now handle playlists in a block of 255 bytes instead of a single byte at ↵Robert Hak
a time git-svn-id: svn://svn.rockbox.org/rockbox/trunk@946 a1c6a512-1295-4272-9138-f99709370657
2002-06-10Added leading slash to the mp3 file nameLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@927 a1c6a512-1295-4272-9138-f99709370657
2002-06-07removed two compiler warnings, made the rand functions staticDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@918 a1c6a512-1295-4272-9138-f99709370657
2002-06-04added some stupid faked random functions too, to build on targetDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@894 a1c6a512-1295-4272-9138-f99709370657
2002-06-04Moved playlist code here from the firmware directory, also adjusted itDaniel Stenberg
and edited to support the mpeg thread request-style API. Believe it or not, but this passes my basic tests for playlist funcionality. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@890 a1c6a512-1295-4272-9138-f99709370657