rockbox/apps/plugins
Michael Sevakis d37bf24d90 Enable setting of global output samplerate on certain targets.
Replaces the NATIVE_FREQUENCY constant with a configurable frequency.

The user may select 48000Hz if the hardware supports it. The default is
still 44100Hz and the minimum is 44100Hz. The setting is located in the
playback settings, under "Frequency".

"Frequency" was duplicated in english.lang for now to avoid having to
fix every .lang file for the moment and throwing everything out of sync
because of the new play_frequency feature in features.txt. The next
cleanup should combine it with the one included for recording and
generalize the ID label.

If the hardware doesn't support 48000Hz, no setting will be available.

On particular hardware where very high rates are practical and desireable,
the upper bound can be extended by patching.

The PCM mixer can be configured to play at the full hardware frequency
range. The DSP core can configure to the hardware minimum up to the
maximum playback setting (some buffers must be reserved according to
the maximum rate).

If only 44100Hz is supported or possible on a given target for playback,
using the DSP and mixer at other samperates is possible if the hardware
offers them.

Change-Id: I6023cf0c0baa8bc6292b6919b4dd3618a6a25622
Reviewed-on: http://gerrit.rockbox.org/479
Reviewed-by: Michael Sevakis <jethead71@rockbox.org>
Tested-by: Michael Sevakis <jethead71@rockbox.org>
2013-07-06 04:22:04 +02:00
..
beatbox Revise the PCM callback system after adding multichannel audio. 2012-03-03 07:23:38 +01:00
bitmaps Created graphics for the numbers in Sudoku and fixed layout for Sansa Clip Zip. 2013-01-27 13:57:27 +01:00
chessbox hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
clock Make fixepoint.c as a shared library (libfixedpoint.a). 2013-04-26 00:11:04 +02:00
doom hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
fft Make fixepoint.c as a shared library (libfixedpoint.a). 2013-04-26 00:11:04 +02:00
fractals hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
frotz Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
goban hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
imageviewer imageviewer: fix animated gifs handling 2013-04-18 09:42:48 +02:00
lib Make fixepoint.c as a shared library (libfixedpoint.a). 2013-04-26 00:11:04 +02:00
lua Make lbitlib.c include its own header (for the luaopen_bit prototype) 2012-05-19 01:19:20 +02:00
midi plugin_midi: expand gustable[] to 128 entries 2013-06-16 18:33:57 +02:00
mikmod Deprecate the EXTRA_LIBS variable. 2013-01-24 16:06:45 +01:00
mpegplayer Enable setting of global output samplerate on certain targets. 2013-07-06 04:22:04 +02:00
pacbox Pacbox: add fuze+ to the targets that can manage full frames 2012-11-21 11:26:39 +01:00
pdbox Deprecate the EXTRA_LIBS variable. 2013-01-24 16:06:45 +01:00
pictureflow [Fuze+] PictureFlow: complete keys mapping 2012-12-26 17:30:31 +01:00
reversi hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
rockboy Don't reinvent ctype.h functions 2012-05-07 18:43:12 +02:00
searchengine Second try: Introduce plugin_crt0.c that every plugin links. 2010-08-24 14:30:46 +00:00
shortcuts plugins: another round of making local functions static 2011-10-15 20:38:08 +00:00
sudoku hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
text_viewer hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
zxbox hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
alarmclock.c Use crc32 of filename to resume tracks 2013-01-02 08:29:38 +01:00
alpine_cdc.c plugins: another round of making local things static and adding missing #includes 2011-12-28 11:32:13 +00:00
battery_bench.c Creative Zen x-fi: fix battery bench plugin 2012-05-20 17:06:14 +02:00
bench_mem_jpeg.c plugins: use lcd_putsf/lcd_putsxyf 2010-08-28 21:46:45 +00:00
bench_scaler.c plugins: use lcd_putsf/lcd_putsxyf 2010-08-28 21:46:45 +00:00
blackjack.c blackjack: c200 keymap is identical to clip keymap 2013-02-18 09:20:27 +01:00
boomshine.lua Use PLA in boomshine.lua instead of the awkward kbd_input context. This enables it on RaaA. 2012-01-27 09:15:05 +01:00
bounce.c Make fixepoint.c as a shared library (libfixedpoint.a). 2013-04-26 00:11:04 +02:00
brickmania.c brickmania: Disable resuming after game over 2012-04-30 12:06:05 +02:00
bubbles.c Make fixepoint.c as a shared library (libfixedpoint.a). 2013-04-26 00:11:04 +02:00
BUILD_OVERLAY Rockbox as an application: Replace many occurences of #ifdef SIMULATOR with #if (CONFIG_PLATFORM & PLATFORM_HOSTED) (or equivalently). 2010-06-21 16:53:00 +00:00
calculator.c Implements exponential and logarithm in calculator plugin 2012-10-19 23:05:25 +02:00
calendar.c hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
CATEGORIES imageviewer: gif viewer based on giflib-5.0.2 2012-11-13 18:13:10 +01:00
chessbox.c Second try: Introduce plugin_crt0.c that every plugin links. 2010-08-24 14:30:46 +00:00
chessclock.c hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
chip8.c hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
chopper.c hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
clix.c hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
codebuster.c plugins: use lcd_putsf/lcd_putsxyf 2010-08-28 21:46:45 +00:00
credits.c * Rename backlight_force_on to backlight_ignore_timeout to make it clear what the function does. 2011-01-24 12:29:16 +00:00
credits.pl
crypt_firmware.c Second try: Introduce plugin_crt0.c that every plugin links. 2010-08-24 14:30:46 +00:00
cube.c Make fixepoint.c as a shared library (libfixedpoint.a). 2013-04-26 00:11:04 +02:00
demystify.c plugins: another round of making local functions static 2011-10-15 20:38:08 +00:00
dice.c Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
dict.c plugins: make local functions static for a subset of plugins 2011-09-17 17:20:27 +00:00
disktidy.c disktidy: don't use "abort" for variable name as it might conflict 2011-12-14 04:42:03 +00:00
disktidy.config Revert r31239 and r31250. Selecting ALL in disktidy used to be generally safe for most people, and these changes change that, making it easy to delete most or all of a user's music. This is a *very* bad idea. 2011-12-26 00:03:28 +00:00
elfdep.pl
euroconverter.c Remove build conditions inside .c plugin files 2010-08-25 19:00:58 +00:00
fire.c Make fixepoint.c as a shared library (libfixedpoint.a). 2013-04-26 00:11:04 +02:00
fireworks.c fireworks: ues PLA_EXIT to exit without going through the menu. 2012-02-24 15:06:18 +01:00
firmware_flash.c fix r27926 : lcd_puts() not changed to lcd_putsf() 2010-08-28 21:54:24 +00:00
flipit.c hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
goban.c Fix yellows/reds. Red where caused by preprocessor condition mismatch. 2010-08-24 15:01:33 +00:00
greyscale.c * Rename backlight_force_on to backlight_ignore_timeout to make it clear what the function does. 2011-01-24 12:29:16 +00:00
helloworld.c Update comments in the helloword plugin. 2010-08-30 20:58:38 +00:00
helloworld.lua
invadrox.c hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
iriver_flash.c Fix warning about using static vars in non static inline functions with gcc 4.5. 2010-12-27 10:46:29 +00:00
iriverify.c Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
jackpot.c plugins: another round of making local things static and adding missing #includes 2011-12-28 11:32:13 +00:00
jewels.c hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
keybox.c Fix further 'variable set but not used' warnings reported from GCC 4.6.0. 2011-05-01 13:48:28 +00:00
lamp.c Additional colors for lamp.rock 2013-02-04 09:08:16 +01:00
logo.c Plugin logo PLA integration (code + manual) 2012-03-03 12:05:58 +01:00
lrcplayer.c Use crc32 of filename to resume tracks 2013-01-02 08:29:38 +01:00
matrix.c matrix plugin: Fix out-of-bounds array access. Unify for-loop style. 2012-06-03 23:37:33 +02:00
maze.c Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
mazezam.c * Rename backlight_force_on to backlight_ignore_timeout to make it clear what the function does. 2011-01-24 12:29:16 +00:00
md5sum.c Ged rid of uisimulator/common/io.c for android builds. 2010-09-01 21:29:34 +00:00
metronome.c Tweak paramters of mp3_play_data and callback. 2012-03-04 14:50:47 -05:00
minesweeper.c hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
mosaique.c Plugin mosaique PLA integration (code + manual) 2012-03-03 16:37:47 +01:00
mp3_encoder.c hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
nim.c plugins: use lcd_putsf/lcd_putsxyf 2010-08-28 21:46:45 +00:00
oscilloscope.c Enable setting of global output samplerate on certain targets. 2013-07-06 04:22:04 +02:00
pegbox.c hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
pictureflow.c Second try: Introduce plugin_crt0.c that every plugin links. 2010-08-24 14:30:46 +00:00
pitch_detector.c Revise the PCM callback system after adding multichannel audio. 2012-03-03 07:23:38 +01:00
plasma.c Make fixepoint.c as a shared library (libfixedpoint.a). 2013-04-26 00:11:04 +02:00
plugin.lds M5/X5 (MCF5250): Scoot the core/plugin IRAM boundary forward by 0x800. 2012-04-29 14:35:53 -04:00
plugin_crt0.c Commit to certain names for cache coherency APIs and discard the aliases. 2011-12-17 07:27:24 +00:00
plugins.make Make fixepoint.c as a shared library (libfixedpoint.a). 2013-04-26 00:11:04 +02:00
pong.c hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
properties.c Use two lined display in properties. 2012-04-09 18:56:08 +02:00
random_folder_advance_config.c Option to constrain get_next_dir() to directories below global_settings.start_directory. 2012-03-19 11:49:55 +01:00
remote_control.c Second try: Introduce plugin_crt0.c that every plugin links. 2010-08-24 14:30:46 +00:00
resistor.c Fix FS#11675 : LED resistor calculator does not wait for keypress. Thanks to Michael Chicoine for reporting the bug. 2011-12-02 01:58:07 +00:00
robotfindskitten.c Declaration of 'pause' from robotfindskitten has conflicting types for 'pause' from android-ndk-r5 2011-01-22 18:27:05 +00:00
rockblox.c Fix rockblox instadrop behaviour 2013-06-09 21:44:01 +02:00
rockblox1d.c rockblox1d's plugin PLA integration (main code + manual) 2012-02-18 23:57:22 +01:00
rockbox-fonts.config New plugin theme_remove which offers a way to remove specified theme. 2009-10-12 13:55:59 +00:00
rockbox_flash.c Improve rockbox_flash messages 2012-02-05 16:26:09 +01:00
rockboy.c Second try: Introduce plugin_crt0.c that every plugin links. 2010-08-24 14:30:46 +00:00
rocklife.c plugins: another round of making local functions static 2011-10-15 20:38:08 +00:00
rockpaint.c hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
search.c Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
settings_dumper.c EQ settings: Rework the settings to clean up the config file. 2013-02-09 13:05:32 +01:00
shopper.c plugins: make local functions static for a subset of plugins 2011-09-17 17:20:27 +00:00
sliding_puzzle.c hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
snake.c hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
snake2.c snake2: clip/m200 use same keypad than e200/c200 2013-02-18 09:20:27 +01:00
snake2.levels
snow.c Plugin snow PLA integration (code + manual) 2012-03-03 10:48:22 +01:00
sokoban.c hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
sokoban.levels
solitaire.c hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
sort.c plugins: make local functions static for a subset of plugins 2011-09-17 17:20:27 +00:00
SOURCES Enable setting of global output samplerate on certain targets. 2013-07-06 04:22:04 +02:00
SOURCES.app_build clix: Add cells for 320x480. Enable for touchscreen RaaA. 2012-01-30 00:51:43 +01:00
spacerocks.c hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
splitedit.c plugins: another round of making local functions static 2011-10-15 20:38:08 +00:00
star.c hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
starfield.c Clean up peak calculating code. 2012-05-02 20:53:07 -04:00
stats.c stats's plugin PLA integration (main code + manual) 2012-02-22 09:15:50 +01:00
stopwatch.c Fix stop watch plugin from inserting 0 second laps if a new lap is started with the timer off. 2012-06-14 04:24:54 +02:00
stopwatch.lua stopwatch.lua: Improve button layout. Enable on touchscreen RaaA. 2012-01-29 22:35:49 +01:00
SUBDIRS hm60x: Add support for plugins. 2012-04-19 17:31:13 +04:00
SUBDIRS.app_build reversi: Fix viewport initialization. Improve button layout for portrait. Enable for toucschreen RaaA. 2012-01-30 00:17:47 +01:00
superdom.c hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
test_boost.c Second try: Introduce plugin_crt0.c that every plugin links. 2010-08-24 14:30:46 +00:00
test_codec.c Enable setting of global output samplerate on certain targets. 2013-07-06 04:22:04 +02:00
test_core_jpeg.c Second try: Introduce plugin_crt0.c that every plugin links. 2010-08-24 14:30:46 +00:00
test_disk.c revert changes in test_disk.c introduced by accident in r30459 2012-03-22 18:37:55 +01:00
test_fps.c test_X plugins PLA integration 2012-03-03 19:55:51 +01:00
test_gfx.c rbpaths: Add new special dir HOME_DIR for RaaA. 2011-12-25 20:11:18 +00:00
test_grey.c test_X plugins PLA integration 2012-03-03 19:55:51 +01:00
test_greylib_bitmap_scale.c test_X plugins PLA integration 2012-03-03 19:55:51 +01:00
test_mem.c test_mem: silence -Wunused-but-set-variable warning 2013-06-13 18:56:23 +02:00
test_mem_jpeg.c Second try: Introduce plugin_crt0.c that every plugin links. 2010-08-24 14:30:46 +00:00
test_resize.c Second try: Introduce plugin_crt0.c that every plugin links. 2010-08-24 14:30:46 +00:00
test_sampr.c Revise the PCM callback system after adding multichannel audio. 2012-03-03 07:23:38 +01:00
test_scanrate.c test_X plugins PLA integration 2012-03-03 19:55:51 +01:00
test_touchscreen.c test_touchscreen.rock: Add keymap for sdl and android. 2012-01-27 09:15:05 +01:00
test_viewports.c Second try: Introduce plugin_crt0.c that every plugin links. 2010-08-24 14:30:46 +00:00
test_viewports.lua
text_editor.c Don't reinvent ctype.h functions 2012-05-07 18:43:12 +02:00
theme_remove.c Ged rid of uisimulator/common/io.c for android builds. 2010-09-01 21:29:34 +00:00
vbrfix.c GSoC/Buflib: Replace all direct accesses to audiobuf with buffer API functions. 2011-08-14 15:13:00 +00:00
video.c Tweak paramters of mp3_play_data and callback. 2012-03-04 14:50:47 -05:00
viewers.config imageviewer: gif viewer based on giflib-5.0.2 2012-11-13 18:13:10 +01:00
vu_meter.c Make fixepoint.c as a shared library (libfixedpoint.a). 2013-04-26 00:11:04 +02:00
wav2wv.c fix leak-file-handles. 2010-10-23 12:40:07 +00:00
wavplay.c Clean up multiple definitions of RAM size. Remove -DMEM (make) and MEM (code), use the already defined MEMORYSIZE instead. 2011-02-02 17:43:32 +00:00
wavrecord.c Fix r29171 red. Forgot to replace a few. 2011-01-30 01:15:23 +00:00
wavview.c plugins: make local functions static for metronome, rockblox1d, wavview 2011-10-04 19:33:52 +00:00
wormlet.c hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
xobox.c hm801: Add support for plugins. 2012-04-19 17:31:13 +04:00
zxbox.c Second try: Introduce plugin_crt0.c that every plugin links. 2010-08-24 14:30:46 +00:00