Commit graph

8641 commits

Author SHA1 Message Date
Nicolas Pennequin
4e2de44b44 A rather big change to how tracks are loaded: there are now two parts to the process and metadata loading is done by the buffering thread (except for the first unbuffered track). The audio thread now calls audio_load_track, and once the metadata is loaded, the buffering thread sends an event which will make the audio thread call audio_finish_load_track. This one then takes care of the rest of the loading.
This method makes skipping noticeably faster for unbuffered tracks, and especially backwards.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17109 a1c6a512-1295-4272-9138-f99709370657
2008-04-14 16:17:47 +00:00
Nicolas Pennequin
a5ad74ffca Revert what was left of r17018 until I find a better way. It had quirks in some cases, and doesn't play well with what I'm about to commit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17108 a1c6a512-1295-4272-9138-f99709370657
2008-04-14 15:51:40 +00:00
Nicolas Pennequin
3c9625969b FS#8882: Fix the bug where skipping backwards with Ogg files could result in a skip forward (FS#8508). The problem was introduced by a one-line change in r16025, so we revert it. At the time I thought that line had become useless but obviously I was wrong. Thanks to Greg Erwin for finding the fix.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17107 a1c6a512-1295-4272-9138-f99709370657
2008-04-14 10:52:16 +00:00
Jonathan Gordon
dada3242d5 Dont show the playlist catalog item in the file context menu unless the file is audio or a m3u(8).
Mentinoed in FS#8752


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17106 a1c6a512-1295-4272-9138-f99709370657
2008-04-14 10:03:46 +00:00
Michael Giacomelli
861525852c Increase the size of one of the look up tables. Fixes 'burst of static' in some files. I still have no idea how big it really needs to be...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17103 a1c6a512-1295-4272-9138-f99709370657
2008-04-14 01:12:51 +00:00
Bertrik Sikken
c826933984 Fixed "#else if", changed to "#elif"
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17101 a1c6a512-1295-4272-9138-f99709370657
2008-04-13 22:10:31 +00:00
Jens Arnold
2bf4178018 Make mpegplayer sleep the disk after buffering to save battery. * Add a simulator stub for ata_sleep(), and un-ifdef most calls to it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17096 a1c6a512-1295-4272-9138-f99709370657
2008-04-13 12:24:47 +00:00
Jens Arnold
c773eed3e1 The greylib now takes care of the necessary aligment and uncached addressing itself, so simplify the code a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17094 a1c6a512-1295-4272-9138-f99709370657
2008-04-13 11:57:11 +00:00
Magnus Holmgren
d715f79ed6 Remove redundant init call.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17092 a1c6a512-1295-4272-9138-f99709370657
2008-04-13 10:00:42 +00:00
Michael Giacomelli
9a946f6022 Commit FS#8822 by Magnus Holmgren. Fixes resuming previously playing WMA files after a reboot.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17090 a1c6a512-1295-4272-9138-f99709370657
2008-04-12 19:52:31 +00:00
Nils Wallménius
84dc8d2c7e Move a function to gwps-common.c because it belongs there
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17084 a1c6a512-1295-4272-9138-f99709370657
2008-04-12 13:25:16 +00:00
Jens Arnold
fef82552e1 Optimise some more line drawing calls.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17083 a1c6a512-1295-4272-9138-f99709370657
2008-04-12 09:51:16 +00:00
Jens Arnold
b6213bbf98 Optimise line drawing calls.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17082 a1c6a512-1295-4272-9138-f99709370657
2008-04-12 08:57:28 +00:00
Michael Sevakis
57742e0ef7 Add a "View I/O Ports" screen for imx31. Show all GPIO contents.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17072 a1c6a512-1295-4272-9138-f99709370657
2008-04-11 15:49:48 +00:00
Robert Kukla
7147e4791e FS#8861 - More Rockbox friendly MazezaM (by Malcolm Tyrrell)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17068 a1c6a512-1295-4272-9138-f99709370657
2008-04-10 23:28:19 +00:00
Nils Wallménius
791e0928c5 Slight readability improvements
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17056 a1c6a512-1295-4272-9138-f99709370657
2008-04-09 21:47:43 +00:00
Robert Kukla
183dbbdc9a FS#8738 - move the progress bar to the bottom of the screen (fixes FS#8736 - "fake" progress bar when deleting a folder overlaps the text since r16527)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17055 a1c6a512-1295-4272-9138-f99709370657
2008-04-09 20:13:09 +00:00
Nils Wallménius
8dca930a1a Some small binsize savings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17052 a1c6a512-1295-4272-9138-f99709370657
2008-04-09 16:01:40 +00:00
Nils Wallménius
6848961aa5 Pass the buffer length to the list_get_name callback functions instead of using hardcoded MAX_PATH
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17049 a1c6a512-1295-4272-9138-f99709370657
2008-04-09 15:25:17 +00:00
Robert Kukla
f617ba4a43 fix FS#8860 - File browser context menu shows unnecessary items in an empty directory
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17047 a1c6a512-1295-4272-9138-f99709370657
2008-04-09 13:50:33 +00:00
Thom Johansen
18fc7fd654 Remove FRACMUL_8_LOOP macro. This only benefited Coldfire, and we have assembler routines for the gain function there now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17040 a1c6a512-1295-4272-9138-f99709370657
2008-04-08 21:44:07 +00:00
Thom Johansen
66427c3e47 Remove ACC_INIT, ACC and GET_ACC macros. These were quite Coldfire-centric macros which really aren't needed since all performance sensitive target DSP code should be assembler anyway.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17037 a1c6a512-1295-4272-9138-f99709370657
2008-04-08 20:02:56 +00:00
Robert Kukla
43def523e4 m:robe - build doom plugin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17036 a1c6a512-1295-4272-9138-f99709370657
2008-04-08 19:31:45 +00:00
Robert Kukla
306652c940 it's #else not #elif (fix red)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17034 a1c6a512-1295-4272-9138-f99709370657
2008-04-08 15:25:35 +00:00
Robert Kukla
ff554e0c7f m:robe 100 - make screendump work for greyscale and add screenshots for the manual
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17033 a1c6a512-1295-4272-9138-f99709370657
2008-04-08 15:04:26 +00:00
Robert Kukla
1317ebb1a0 m:robe 100: a few button defines and other greyscale related changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17030 a1c6a512-1295-4272-9138-f99709370657
2008-04-07 22:09:14 +00:00
Jens Arnold
9c32dde82c This TODO is no longer todo...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17029 a1c6a512-1295-4272-9138-f99709370657
2008-04-07 21:47:58 +00:00
Jens Arnold
ece03129b6 Make the greyscale library work on the m:robe 100. Testing on target done by Robert Kukla & Dominik Riebeling.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17028 a1c6a512-1295-4272-9138-f99709370657
2008-04-07 21:14:29 +00:00
Nicolas Pennequin
06c199e347 Some more debug output disabling.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17026 a1c6a512-1295-4272-9138-f99709370657
2008-04-07 19:33:48 +00:00
Nicolas Pennequin
e92c176d95 r17018 caused the WPS playlist index display to be wrong with shuffled enabled, so we revert to using playlist_get_display_index() on HWCODEC. Using id3->index would require something like what was added in r3726.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17025 a1c6a512-1295-4272-9138-f99709370657
2008-04-07 19:09:30 +00:00
Steve Bavin
0840e1bf0b Remove unused playlist_checkend(), it really should never be needed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17023 a1c6a512-1295-4272-9138-f99709370657
2008-04-07 18:19:11 +00:00
Nicolas Pennequin
6ff8f6ae87 Use file_exists instead of duplicating what it does.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17022 a1c6a512-1295-4272-9138-f99709370657
2008-04-07 17:43:59 +00:00
Steve Bavin
799e9489ca Remove some more simulator debugging output.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17019 a1c6a512-1295-4272-9138-f99709370657
2008-04-07 17:19:53 +00:00
Nicolas Pennequin
977069a41d Bring the WPS playlist index display into sync with the track being played by using the index field of the ID3 info struct instead of directly asking the playlist code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17018 a1c6a512-1295-4272-9138-f99709370657
2008-04-07 13:43:09 +00:00
Nils Wallménius
5d4c7d7aaa Fix typo in description of LANG_PLAYLISTS (basically FS#8496 minus the unrelated changes in the patch).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17016 a1c6a512-1295-4272-9138-f99709370657
2008-04-07 11:23:58 +00:00
Linus Nielsen Feltzing
ce08cdb294 Patch FS#8857 by Justin Hannigan - Correct Gigabeat instructions for Bubbles
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17015 a1c6a512-1295-4272-9138-f99709370657
2008-04-07 06:33:21 +00:00
Michael Giacomelli
82dc8175cf Make the WMA decoder less noisy in the sim.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17014 a1c6a512-1295-4272-9138-f99709370657
2008-04-07 02:32:48 +00:00
Michael Giacomelli
c6bbb0f690 Fix sim for now. Eventually I should change the decoder to error out if theres a problem allocating huffman tables.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17013 a1c6a512-1295-4272-9138-f99709370657
2008-04-07 02:25:09 +00:00
Michael Giacomelli
231f0c208d Let the console know when the huffman tables have overflown. This should never happen.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17012 a1c6a512-1295-4272-9138-f99709370657
2008-04-07 02:11:14 +00:00
Michael Giacomelli
4a808073c7 Amazingly, I've only been initing about 1/2 the huffman table entries needed to actually decode a WMA file for the last 8 months and yet somehow never noticed. Fixes FS#8713, FS#8606 and probably a lot of other files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17011 a1c6a512-1295-4272-9138-f99709370657
2008-04-07 02:01:44 +00:00
Michael Sevakis
5d230524d5 Toss-in a Gigabeat S keymap for pegbox. #error for an unsupported map.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17004 a1c6a512-1295-4272-9138-f99709370657
2008-04-06 23:25:21 +00:00
Nicolas Pennequin
fdb1028cb1 Really fix the red this time, I hope.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17003 a1c6a512-1295-4272-9138-f99709370657
2008-04-06 23:04:00 +00:00
Nicolas Pennequin
6bef4f6549 Oops. Fix red.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17002 a1c6a512-1295-4272-9138-f99709370657
2008-04-06 22:47:21 +00:00
Nicolas Pennequin
6aa36c66a3 Commit FS#8308 (Port of imlib2 based smooth scaling) by Jonas Hurrelmann. It could be made smaller by taking out some special cases, but I'm leaving them in for now because size isn't really a concern until we decide to move it into the core (if we ever do). test_resize now allows to choose between both resize methods for comparison. sliding_puzzle is made to use the smooth scaling.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17001 a1c6a512-1295-4272-9138-f99709370657
2008-04-06 22:30:50 +00:00
Jens Arnold
c368bc7505 Test plugin for greyscle library calibration.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16989 a1c6a512-1295-4272-9138-f99709370657
2008-04-06 15:36:53 +00:00
Jens Arnold
df8749d6d7 Adapt the remaining plugins to put the greyscale isr on cop. Now they can be used while playing music without making the audio stutter. Needs the new SHAREDBSS_ATTR.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16987 a1c6a512-1295-4272-9138-f99709370657
2008-04-06 13:59:31 +00:00
Jens Arnold
f79bfcf1d7 PP targets: Make sure the COP cache is invalidated before loading a plugin.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16984 a1c6a512-1295-4272-9138-f99709370657
2008-04-06 13:26:39 +00:00
Michael Sevakis
05099149f1 Enable nocache sections using the linker. PP5022/4 must use SW_CORELOCK now with shared variables in DRAM (it seems swp(b) is at least partially broken on all PP or I'm doing something very wrong here :\). For core-shared data use SHAREDBSS/DATA_ATTR. NOCACHEBSS/DATA_ATTR is available whether or not single core is forced for static peripheral-DMA buffer allocation without use of the UNCACHED_ADDR macro in code and is likely useful on a non-PP target with a data cache (although not actually enabled in config.h and the .lds's in this commit).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16981 a1c6a512-1295-4272-9138-f99709370657
2008-04-06 04:34:57 +00:00
Jens Arnold
1d8312f996 Fix occasional crashes on greylib exit (LCD controller confusion) when running on COP.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16976 a1c6a512-1295-4272-9138-f99709370657
2008-04-05 09:38:59 +00:00
Jens Arnold
8f560bc2b5 Greyscale library: Always use reconstructing inversion, because it's legal to use unbuffered drawing functions in buffered mode, meaning that the chunky buffer might not be in sync with what's displayed. Mpegplayer does this.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16975 a1c6a512-1295-4272-9138-f99709370657
2008-04-05 08:56:43 +00:00