Commit graph

14708 commits

Author SHA1 Message Date
Michael Sevakis
72c41a3e72 crosfade_mix_fade should be returning size_t, not int.
'Twas a leftover from trying out counts instead of bytes when converting to
timestamping that should have been reverted.

Change-Id: I658c1a19e283025d991b7600378f97c6fc37db34
2012-02-21 05:05:00 -05:00
Frank Gevaerts
1a4da5961e Make skinned lists handle the "0 items" case without crashing
Change-Id: Iaf69c93727e0f0e2a48b44c330883f7a620c4d99
2012-02-21 01:29:12 +01:00
Jonathan Gordon
9c21258e2c skin engine: Add 'touch' command to the %vs() tag
%vs(label, touch, -) will reset the timeout for the variable without
changing the variables value.

Change-Id: Idba03f454a82ac7460bb53a4de3aa6903656c585
2012-02-21 00:34:58 +11:00
Jonathan Gordon
43fc2a51d9 skin engine: Make %vs() dynamic so it updated every screen update
This makes it easier to use %?vl() (variable last changed) in a sensible manner.

Change-Id: I0bf9ae24bc4516d2fd5691af236cc4439a0863c8
2012-02-21 00:17:49 +11:00
Michael Sevakis
5833cc181b pcmbuf minor cleaning
Group functions a bit better and expunge some obsolete function prototypes.

Change-Id: Ifaf8a265dbe0a9f081e524b2e646e2dc50c6aa43
2012-02-20 00:47:21 -05:00
Frank Gevaerts
9c3ce33d4e Fix another skinned list buflib issue
Change-Id: Ib0eebf56b1bf4f4119ebfd21679f6cd9c8986ea4
2012-02-19 21:06:03 +01:00
Frank Gevaerts
46285e7c2f Fix a nullpointer dereference in skinned lists.
Unfortunately this doesn't seem to be the only problem with skinned
lists. Fixing this still doesn't make them work right.

Change-Id: Ibf80eb2a4fa4eb392e2f3ea9744aec68c6181961
2012-02-19 20:52:06 +01:00
Bertrik Sikken
f81100efd2 make local variable current_list static
Change-Id: Ibe3536a4865c12160e933d3696af4b5507713ffe
2012-02-19 12:12:40 +01:00
Michael Sevakis
9a25a6fe19 beep/mixer code: Code police a bit.
/firmware is in the #include path with makes #include "asm/beep.c" sufficient.

Add a comment to generic beep code and make another express intent better.

Change-Id: I587cd704478b894785927bdfe2e647e28614df62
2012-02-19 00:38:58 -05:00
Jean-Louis Biasini
e5b1b0f998 rockblox1d's plugin PLA integration (main code + manual)
1) this patch replace all keymaps with PLA ones. It also clean some optionnal
compiling that are not needed anymore througt PLA.

2) the patch also made required change to the manual in order to match code's
change.

3) it also add an alternative exit button (PLA_EXIT or PLA_CANCEL).

Change-Id: If6e78711eaab1dd2c907b418ba72c8789ceaa72b
Reviewed-on: http://gerrit.rockbox.org/105
Reviewed-by: Thomas Martitz <kugel@rockbox.org>
Tested-by: Thomas Martitz <kugel@rockbox.org>
2012-02-18 23:57:22 +01:00
Magnus Holmgren
488f6229c0 libarm_support references code in libplugin, so put libarm_support first of the two when linking. There may be better solutions, but this fixes linking problems for me (on Cygwin).
Change-Id: I5b2c87d5986cf5cba6652aad4ece0647e1178474
2012-02-18 16:51:50 +01:00
Bertrik Sikken
ff36a5423e Sansa clip zip: fix pinkish outline around usb logo
Change-Id: I3d90b74ed1bc6d2a137d24a362b3ad3ca44ff4b6
2012-02-18 16:01:06 +01:00
Bertrik Sikken
8a87b663ed midi plugin: make local functions static where possible
Change-Id: I702755529f98015586b5b9592ced75cf7591880c
2012-02-18 12:06:48 +01:00
Bertrik Sikken
43a940c8cb rds: add basic RDS clock-time support
Change-Id: I931182ccd20cf8899f3ce9b6b8d7c7c5f4ea006f
2012-02-18 11:02:13 +01:00
Michael Sevakis
9a32a7b404 Split CPU-optimized beep code into the firmware/asm tree.
For now due to current lack of an apps/asm, place the ASM/generic code in the
firmware/asm directory.

Additionally, make generic beep code more generic.

Change-Id: I4a69b6ffcbb97d9e6dfde2209c5a118de19e5638
2012-02-18 04:50:33 -05:00
Thomas Martitz
af4f2157b8 Fix lua unused-variable warning by introducing UNUSED_ATTR.
Change-Id: If19393db123e89e58545c9e0736e6fa32fccb810
2012-02-17 12:08:27 +01:00
Albert Bloomfield
885ecf8327 Add playlist wrappers for lua
adds wrappers for the functions playlist_sync, playlist_remove_all_tracks, and playlist_insert_track, playlist_insert_directory
playlist_{sync,remove_all_tracks} take no arguments
playlist_insert_{track,directory} only have one required argument (either the filename or directory name)
They take as optional arguments position, queue, and either sync or recurse

They all just pass NULL to work with the current playlist

also adds constants for:
PLAYLIST_PREPEND,
PLAYLIST_INSERT,
PLAYLIST_INSERT_LAST,
PLAYLIST_INSERT_FIRST,
PLAYLIST_INSERT_SHUFFLED,
PLAYLIST_REPLACE, and
PLAYLIST_INSERT_LAST_SHUFFLED

Change-Id: Ib7464cba50e7a250edf092e50668f11010f2b737
Reviewed-on: http://gerrit.rockbox.org/109
Reviewed-by: Thomas Martitz <kugel@rockbox.org>
2012-02-17 12:02:22 +01:00
Bertrik Sikken
565a4b5baa rds: make programme identification (pi) decoding safer, show pi in the debug screen
Change-Id: I8b547400f4a28ee387157848b9640a3361df937f
2012-02-16 20:49:06 +01:00
Bertrik Sikken
b193b75f62 zxbox: make source files include their header file and make function static where possible
Change-Id: I0c87563ee29f46948e3a559c27b1b22d4404cec1
2012-02-15 22:32:43 +01:00
Igor Petelin
54211a6e39 FS#12582 - update for ukrainian language
Signed-off-by: Bertrik Sikken <bertrik@sikken.nl>

Change-Id: I620b83774ecc6cd1ce797bd0d197d5dd56fdbeb1
2012-02-10 22:11:30 +01:00
Thomas Martitz
295c1c1e8b checkwps: Fix buildall.sh and some RaaA/ypr0 versions.
Change-Id: I5889743e94ed568c8f7dcc50de0b03b8421969f7
2012-02-10 20:27:59 +01:00
Jean-Louis Biasini
c978665025 Fuze+ PLA_EXIT slight mapping cleanup
1) On all non PLA plugin, power button is used for exit. For consistency,
we set PLA_EXIT to power button.
2) Manual updated accordingly

Change-Id: Ia4b8fce13bad2f8dc0710cdb29ccf6c74b3fd9c4
Reviewed-on: http://gerrit.rockbox.org/91
Reviewed-by: Thomas Martitz <kugel@rockbox.org>
Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2012-02-09 16:43:53 +01:00
Wieland Hoffmann
ae7b59634c brickmania: Use short Lvl %d level indicator if needed
Change-Id: Iecbf033f14aeab715f8d0a85131a97ff82943410
Reviewed-on: http://gerrit.rockbox.org/89
Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info>
2012-02-08 22:30:19 +01:00
Michael Sevakis
1ab9d14c77 Move to compressor out of dsp.c and into its own source to reduce DSP clutter.
A bit of a rough job for the moment but all works.

Change-Id: Id40852e0dec99caee02f943d0da8a1cdc16f022a
2012-02-08 14:55:37 -05:00
Thomas Martitz
b0478726e4 Fix reds. No need for #ifdef to save buttons anymore.
Change-Id: I31833ecf0725bbfbdd2905390e2e9b63918cbe3a
2012-02-08 19:01:10 +01:00
Jean-Louis Biasini
a869d4a9ac LAMP plugin PLA integration (main code + manual)
1) this patch replace all keymaps with PLA ones. It also clean some optionnal
 compiling that are not needed anymore througt PLA
2) the patch also made required change to the manual in order to match code's
 change.

Change-Id: I54ec953f79a419a6bb2f78877ca8b82f572fb510
Reviewed-on: http://gerrit.rockbox.org/86
Reviewed-by: Thomas Martitz <kugel@rockbox.org>
Tested-by: Thomas Martitz <kugel@rockbox.org>
2012-02-08 18:32:53 +01:00
Wieland Hoffmann
51912c840c brickmania: Use short L: %d life indicator if needed
This is the case if either the player has lots of lifes or a high score

Change-Id: Ic4c7011e9fa582d2ae552b28474ba260f2b4cab0
Reviewed-on: http://gerrit.rockbox.org/88
Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info>
2012-02-08 13:50:50 +01:00
Michael Sevakis
71e35ed446 Fix FS#12580 - Elapsed time nit reset after track change when playing AC3 files.
It wasn't only a52 but also a52_rm that didn't reset the elapsed counter on
each new track. The problems seemed obvious enough so fixes are being added
blind. Will leave task open for feedback from bug reporter.

Change-Id: Ic6d8eb98690ff4be47547d13b6bbafeadf4da745
2012-02-07 12:25:23 -05:00
Jonathan Gordon
a2f28452e1 Fix FS#9391 - playback engine gets confused by multiple simultaneous button presses
Change-Id: Ie08f9dabc814adfe92c382d2e770808839cd6dd2
2012-02-07 22:06:09 +11:00
Jonathan Gordon
40ecdf6811 skin engine: New logical 'and' and 'or' tags to evaluate multiple tags in a single conditional.
Use these tags to stop having multiple conditionals.. e.g:
OLD: %?C<%?Ia<something>>
NEW: %?and(%C, %Ia)<something>

Change-Id: Ia3bbe4611cf808e87dcd1b1147181461fa08294a
2012-02-07 21:41:18 +11:00
Frank Gevaerts
a969c4df88 rocklife is much more a demo than a game.
Change-Id: Ibf80637cd9c6001a636a9f92c72223ec56dad780
Reviewed-on: http://gerrit.rockbox.org/82
Reviewed-by: Thomas Martitz <kugel@rockbox.org>
Reviewed-by: Boris Gjenero <boris.gjenero@gmail.com>
Tested-by: Boris Gjenero <boris.gjenero@gmail.com>
2012-02-06 09:29:39 +01:00
Boris Gjenero
4b85c93cd8 Improve rockbox_flash messages
- For V2 and FM Recorders, don't recommend bootloader upgrade
  due to FS#12426 BootBox bugs.
- When rockbox.ucl can't fit and the bootloader is old, the
  bootloader needs to be upgraded.
- When RomBox start address differs, the bootloader is
  not compatible with RomBox.

Change-Id: I7ca910805a64eb81faa21b2dde4842cd3b640f5a
Reviewed-on: http://gerrit.rockbox.org/71
Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
2012-02-05 16:26:09 +01:00
Bertrik Sikken
7d54ff069b Add graphics for solitaire/blackjack plugins for the sansa clip zip by Nathan Korth
Change-Id: Ic87bf074f2d60687a2933b05fcad1c0d27dfd9ec
Reviewed-on: http://gerrit.rockbox.org/79
Reviewed-by: Bertrik Sikken <bertrik@sikken.nl>
Tested-by: Bertrik Sikken <bertrik@sikken.nl>
2012-02-03 13:50:20 +01:00
Marcin Bukat
e362e34d51 HD200: fix typo in goban keymap
Change-Id: If93370317eaddb970dc5f30ddbb49f8a6c49aea0
2012-02-02 16:07:50 +01:00
Marcin Bukat
230caaaff6 HD300: fix messages in blackjack
Change-Id: If6fa39609b8ededaea37187e7d9d48e3f36d85c0
2012-02-02 14:55:51 +01:00
Marcin Bukat
5863361fbf MPIOs: keymap tweaks
Change-Id: Ic96900c83ffb90df4f6c68a26238f0543cba61cd
2012-02-02 14:55:51 +01:00
Thomas Martitz
54044fd6e9 Apply "Skip to outro" and specific skip lengths to individual tracks in a cuesheet.
Previously it applied to the whole file and you couldn't skip betweenn the
subtracks. Now it behaves consistently with real seperated tracks.

Change-Id: Ic1730ace142a05d9726b8c9afd67e94823651b60
2012-01-30 21:25:31 +01:00
Thomas Martitz
e7892c9851 clix: Remove redundant touchscreen mode setting. Remove blocks on touch release (to avoid accidental moves).
Change-Id: Ie758e64bff5e7e4ae0f3ffe9e954b533cafb4bed
2012-01-30 01:03:22 +01:00
Thomas Martitz
3e13fcddc6 clix: Add cells for 320x480. Enable for touchscreen RaaA.
Change-Id: Ic002cddb0ffdaa239d21c5b6ba016ab4cec32400
2012-01-30 00:51:43 +01:00
Thomas Martitz
8222388252 reversi: Fix viewport initialization. Improve button layout for portrait. Enable for toucschreen RaaA.
Change-Id: Ief0937693dc2056ed442f68a5ab76a006eaa1209
2012-01-30 00:17:47 +01:00
Thomas Martitz
d216cc7654 Remove touchscreen mode setting from reversi. It's now done in do_menu().
Change-Id: I82e1f0050d7102d6191422b268a1a3acdd71501c
2012-01-29 23:18:35 +01:00
Thomas Martitz
a489a6be8a stopwatch.lua: Improve button layout. Enable on touchscreen RaaA.
Change-Id: Iae3b9e80cbec60856689b1c12aabfd26c85e3d96
2012-01-29 22:35:49 +01:00
Thomas Martitz
7728ff5912 Export runtime detected paths to lua scripts. Adapt stopwatch to not use
hardcoded path.

Change-Id: I5b843002d63a332b3fad02973d00b9863d283062
2012-01-29 22:35:49 +01:00
Thomas Martitz
112bc71a0c Fix building test plugins on non-touch targets, for real.
Change-Id: I8f2105fe3357f00d9e085444cd867bec0e2a7143
2012-01-29 22:35:49 +01:00
Thomas Martitz
476fcfa538 Revert "Fix building test plugins on non-touch targets."
This reverts commit 84c77d40f5.

The commit used an unrelated define which doesn't actually work.
2012-01-29 22:35:49 +01:00
Wieland Hoffmann
c5f772caad correct a typo
Change-Id: I45b72364ec660c96368837b543b0f6d556f9f66a
Reviewed-on: http://gerrit.rockbox.org/72
Reviewed-by: Frank Gevaerts <frank@gevaerts.be>
2012-01-28 16:18:32 +01:00
Wieland Hoffmann
94177e6c3b Use is_keys_locked when possible
Change-Id: Ib0ae0f31a8b040aba5dca4e11df934c89aaca232
Reviewed-on: http://gerrit.rockbox.org/73
Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info>
2012-01-28 14:17:52 +01:00
Magnus Holmgren
3019a80307 Update Swedish translation.
Change-Id: I3524708059d0de04581cdcefe337f9d6ae09f891
2012-01-28 13:41:16 +01:00
Magnus Holmgren
84c77d40f5 Fix building test plugins on non-touch targets.
Change-Id: I6d058099ebb4c9d0aa5b21cb8b2e01bb4a5965d4
2012-01-28 13:41:15 +01:00
Jonathan Gordon
a65d241dd0 skin touchregions: change the rwd/ffwd region actions to make it less buggy in the sbs
Change-Id: Ib823860e65909ac227910a16f6caac207b7e22c3
2012-01-28 23:38:16 +11:00