rockbox/apps
Frank Gevaerts a20d77dba0 Allow %?Sp<...> to be used as a conditional
When there are two choices (i.e. boolean), choose the first one if the
pitch is different from the normal value, and choose the second one if the
pitch is the same as the normal value.

When there are more than two choices (i.e. enum), the left half of the
choices are used to show 0..normal range, and the right half of the
choices are used to show values over that range.  The last entry is used
when it is set to the normal setting, following the rockbox convention to
use the last entry for special values.

  2 items: %?Sp<0..99 or 101..infinity|100>
  3 items: %?Sp<0..99|101..infinity|100>
  4 items: %?Sp<0..49|50..99|101..infinity|100>
  5 items: %?Sp<0..49|50..99|101..149|150..infinity|100>
  6 items: %?Sp<0..33|34..66|67..99|101..133|134..infinity|100>
  7 items: %?Sp<0..33|34..66|67..99|101..133|134..167|167..infinity|100>

This will allow two expected use cases:

 (1) %?Sp<%Sp> to show the pitch only when playing at a modified pitch.

 (2) %?Sp<%xdAa|%xdAb|> to show an icon of Darth Vader (subpicture 1
     of image A) when playing at a lower pitch than the original, and to
     show an icon of a chipmunk (subpicture 2 of image A) when playing at
     a higher pitch than the original.  When playing at a normal pitch,
     nothing is shown.

Flyspray: FS#10680
Author: Junio C Hamano



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23589 a1c6a512-1295-4272-9138-f99709370657
2009-11-09 17:43:46 +00:00
..
bitmaps Fix Onda 2009-07-19 23:53:47 +00:00
codecs Reenable -O2 for Wavpack, which appears to have been lost during makefile clean up. Improves wavpack decoding performance by several MHz on ARM and Coldfire. 2009-11-08 07:04:14 +00:00
eqs
gui Allow %?Sp<...> to be used as a conditional 2009-11-09 17:43:46 +00:00
keymaps FS#10338: Add "use morse input " entry to settings menu 2009-11-08 13:14:50 +00:00
lang FS#10338: Add "use morse input " entry to settings menu 2009-11-08 13:14:50 +00:00
menus FS#10338: Add "use morse input " entry to settings menu 2009-11-08 13:14:50 +00:00
metadata Revert r23339 and use setid3v1title() from metadata/mp3.c instead. 2009-10-25 18:11:55 +00:00
player Fix yellows. 2009-08-12 14:51:16 +00:00
plugins Test codec: Add exit button for touchscreens 2009-11-07 22:56:00 +00:00
recorder keyboard: some random cleanup. 2009-11-09 14:26:20 +00:00
abrepeat.c
abrepeat.h
action.c Touchscreen targets: fix software hold not locking touchscreen 2009-10-28 21:36:24 +00:00
action.h Merge duplicating code to move cursor left/right. 2009-11-06 12:53:02 +00:00
alarm_menu.c Revise r23225 a bit, removing the debug_printf function and implementing more generic lcd_(remote)_putsf function(s) instead and use those in more places 2009-10-17 18:02:48 +00:00
alarm_menu.h
appevents.h Fix buttonbar handling/theme changed handling in lists. 2009-09-07 17:37:06 +00:00
applimits.h
apps.make Also filter lines with only spaces in apps/features. At least mr500 had those after the preprocessing step. 2009-10-18 14:24:25 +00:00
audio_path.c
bookmark.c Make the formatter functions used by the settings return a pointer to avoid usless copying of lang strings, this brought with it a long chain of const correctness and a few random cleanups 2009-08-20 16:47:44 +00:00
bookmark.h
buffering.c Removed unneeded includes 2009-11-09 05:46:08 +00:00
buffering.h Rework albumart buffering internally to allow for mutliple albumart sizes. 2009-10-16 19:14:41 +00:00
codec_thread.c pcmbuf: more refactoring 2009-11-09 17:11:53 +00:00
codec_thread.h Code cleanup in codec_thread, playback and pcmbuf; more elegant solution to leftover samples 2009-11-01 19:39:23 +00:00
codecs.c Removed unneeded includes 2009-11-09 05:46:08 +00:00
codecs.h pcmbuf: better latency calculation, added debug code 2009-11-05 17:32:32 +00:00
core_asmdefs.c Add new asmdefs mechanism for exporting information only available to the C compiler for use in asm files, and use it in arm jpeg idct. See apps/apps.make, apps/core_asmdefs.c, and apps/recorder/jpeg_idct_arm.S for details. 2009-07-13 00:40:35 +00:00
cuesheet.c Removed unneeded includes 2009-11-09 05:46:08 +00:00
cuesheet.h more cuesheet cleanup. pass the cuesheet into cue functions so they dont have to call audio_current_track() 2009-07-24 01:13:30 +00:00
debug_menu.c FS#9728: Battery current measuring on the Video iPod 2009-11-03 20:35:04 +00:00
debug_menu.h
dsp.c Compressor: simplify makeup gain setting, expand release range, finally provide documention in the manual! 2009-11-04 18:14:36 +00:00
dsp.h Compressor: simplify makeup gain setting, expand release range, finally provide documention in the manual! 2009-11-04 18:14:36 +00:00
dsp_arm.S * ARM asm DSP and codec/plugin functions: Use r12 scratch register properly 2009-07-12 13:14:35 +00:00
dsp_asm.h
dsp_cf.S
enc_config.c
enc_config.h
eq.c
eq.h
eq_arm.S
eq_cf.S
features.txt FS#10338: Add "use morse input " entry to settings menu 2009-11-08 13:14:50 +00:00
filetree.c Add support for running Lua games/apps from the Plugins menu 2009-10-28 23:31:42 +00:00
filetree.h
filetypes.c Remove unused #define and correct comment. 2009-10-28 23:31:45 +00:00
filetypes.h Add support for running Lua games/apps from the Plugins menu 2009-10-28 23:31:42 +00:00
fixedpoint.c
fixedpoint.h Replace limiter with dynamic range compressor 2009-09-25 15:46:38 +00:00
fracmul.h
iap.c Add missing svn:keywords property. 2009-08-03 17:59:38 +00:00
keyboard.h
language.c Change the .lng files to contain strings from multiple users. Still hard-coded to only output the core strings for now. Should be the majority of the core changes needed for translatable plugins. 2009-10-18 00:56:42 +00:00
language.h Change the .lng files to contain strings from multiple users. Still hard-coded to only output the core strings for now. Should be the majority of the core changes needed for translatable plugins. 2009-10-18 00:56:42 +00:00
logfdisp.c A new implementation of logf, logfdisplay and logfdump. 2009-08-21 22:54:23 +00:00
logfdisp.h
main.c root_menu() can't return, tell gcc about it 2009-11-03 12:20:54 +00:00
menu.c Quickscreen: 4th item 2009-08-29 14:42:03 +00:00
menu.h
metadata.c FS#10739: playback.c code split 2009-10-31 19:17:36 +00:00
metadata.h Support for playback of atrac3 audio in rm, in sim. 2009-08-14 17:36:57 +00:00
misc.c Fix FS#10745 - %mv not working in sbs... 2009-11-01 02:36:51 +00:00
misc.h FS#10704 - Make a configuration option to disable USB HID 2009-10-23 13:29:19 +00:00
mp3data.c Quick fix to allow certain MP3 files to play. If a Xing or Info header didn't properly set both the frame count and byte count, then the bitrate was set to zero, preventing playback. Better to use the bitrate of the first audio frame in this case. (More sanity checking of the frame count should perhaps be done.) 2009-09-03 21:14:13 +00:00
mp3data.h
mpeg.c Fix yellow, defines 2009-10-31 19:49:58 +00:00
mpeg.h
onplay.c Removed unneeded includes 2009-11-09 05:46:08 +00:00
onplay.h
pcmbuf.c pcmbuf: more refactoring 2009-11-09 17:11:53 +00:00
pcmbuf.h pcmbuf: moved some functions around, no functional changes yet 2009-11-08 04:27:27 +00:00
playback.c Playback: removed duplicate functions 2009-11-09 05:43:19 +00:00
playback.h Playback: removed duplicate functions 2009-11-09 05:43:19 +00:00
playlist.c Committing FS#10717 by Tomasz Kowalyczyk: add PLAYLIST_INSERT_LAST_SHUFFLED (appends the inserted folder into shuffled order to end of playlist) 2009-10-28 22:27:38 +00:00
playlist.h Committing FS#10717 by Tomasz Kowalyczyk: add PLAYLIST_INSERT_LAST_SHUFFLED (appends the inserted folder into shuffled order to end of playlist) 2009-10-28 22:27:38 +00:00
playlist_catalog.c Make the formatter functions used by the settings return a pointer to avoid usless copying of lang strings, this brought with it a long chain of const correctness and a few random cleanups 2009-08-20 16:47:44 +00:00
playlist_catalog.h
playlist_menu.h
playlist_viewer.c Make the formatter functions used by the settings return a pointer to avoid usless copying of lang strings, this brought with it a long chain of const correctness and a few random cleanups 2009-08-20 16:47:44 +00:00
playlist_viewer.h
plugin.c Only expose pcmbuf_beep on SWCODEC targets (aka fix red). 2009-10-29 17:16:31 +00:00
plugin.h FS#10739: playback.c code split 2009-10-31 19:17:36 +00:00
README
replaygain.c FS#10080 2009-07-14 13:57:45 +00:00
replaygain.h
root_menu.c root_menu() can't return, tell gcc about it 2009-11-03 12:20:54 +00:00
root_menu.h root_menu() can't return, tell gcc about it 2009-11-03 12:20:54 +00:00
screen_access.c Revise r23225 a bit, removing the debug_printf function and implementing more generic lcd_(remote)_putsf function(s) instead and use those in more places 2009-10-17 18:02:48 +00:00
screen_access.h Revise r23225 a bit, removing the debug_printf function and implementing more generic lcd_(remote)_putsf function(s) instead and use those in more places 2009-10-17 18:02:48 +00:00
screens.c Fix hiding the status bar in the touchscreen calibration screen. 2009-11-04 23:57:37 +00:00
screens.h Extract usb_screen logic out of screens.c into apps/gui/usb_screen.c 2009-10-19 21:19:30 +00:00
scrobbler.c Fix yellow, again 2009-10-31 19:57:52 +00:00
scrobbler.h Correct wrong usage of event callbacks all over the place. It's not supposed to return anything, and should take a data parameter. 2009-10-20 21:54:44 +00:00
settings.c Compressor: simplify makeup gain setting, expand release range, finally provide documention in the manual! 2009-11-04 18:14:36 +00:00
settings.h FS#10338: Add "use morse input " entry to settings menu 2009-11-08 13:14:50 +00:00
settings_list.c FS#10338: Add "use morse input " entry to settings menu 2009-11-08 13:14:50 +00:00
settings_list.h Make the formatter functions used by the settings return a pointer to avoid usless copying of lang strings, this brought with it a long chain of const correctness and a few random cleanups 2009-08-20 16:47:44 +00:00
sound_menu.h
SOURCES FS#10739: playback.c code split 2009-10-31 19:17:36 +00:00
status.c Change %mp tag to use current_playmode(). It has upto 9 values now, including recording and radio states. 2009-10-16 19:14:28 +00:00
status.h Change %mp tag to use current_playmode(). It has upto 9 values now, including recording and radio states. 2009-10-16 19:14:28 +00:00
tagcache.c Comment out LOGF_ENABLE defines everywhere, replace evil comments 2009-11-03 16:25:03 +00:00
tagcache.h
tagnavi.config Show track length too for tracks tagged with the discnumber tag in the database. 2009-10-15 19:11:10 +00:00
tagtree.c Comment out LOGF_ENABLE defines everywhere, replace evil comments 2009-11-03 16:25:03 +00:00
tagtree.h
talk.c FS#10739: playback.c code split 2009-10-31 19:17:36 +00:00
talk.h
tdspeed.c
tdspeed.h
tree.c Add a browse (remote) custom statusbar item in the theme settings. 2009-10-19 16:08:43 +00:00
tree.h Redraw the list after exiting the context menu to get rid of various non-blocking splashes in it if custom ui vp is used. 2009-09-20 00:04:39 +00:00
usb_keymaps.c Comment out LOGF_ENABLE defines everywhere, replace evil comments 2009-11-03 16:25:03 +00:00
usb_keymaps.h Commit "FS#10468 - USB HID: Show keypad mode on screen" 2009-09-30 10:06:04 +00:00
version.h
voice_thread.c
voice_thread.h

For general information see: docs/README
For API information see: docs/API