diff options
author | Thomas Martitz <kugel@rockbox.org> | 2009-02-26 17:10:27 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2009-02-26 17:10:27 +0000 |
commit | 15dbde1ab76cebd553e278a144e3e56d3b1f39d4 (patch) | |
tree | 08ba4cee139b1486abb64b97ea6e58b86d3c5415 /apps/plugins/vu_meter.c | |
parent | af59e2ac3114a16e25a76c611a179670b101c0b1 (diff) | |
download | rockbox-15dbde1ab76cebd553e278a144e3e56d3b1f39d4.tar.gz rockbox-15dbde1ab76cebd553e278a144e3e56d3b1f39d4.zip |
Accept the first patch at FS#9953 - Add Playback Control to more plugins, by Joshua Simmons
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20111 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/vu_meter.c')
-rw-r--r-- | apps/plugins/vu_meter.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/plugins/vu_meter.c b/apps/plugins/vu_meter.c index 673c080102..9dfae72dc0 100644 --- a/apps/plugins/vu_meter.c +++ b/apps/plugins/vu_meter.c | |||
@@ -19,6 +19,7 @@ | |||
19 | **************************************************************************/ | 19 | **************************************************************************/ |
20 | #include "plugin.h" | 20 | #include "plugin.h" |
21 | #include "lib/fixedpoint.h" | 21 | #include "lib/fixedpoint.h" |
22 | #include "lib/playback_control.h" | ||
22 | 23 | ||
23 | PLUGIN_HEADER | 24 | PLUGIN_HEADER |
24 | 25 | ||
@@ -471,7 +472,8 @@ static bool vu_meter_menu(void) | |||
471 | bool exit = false; | 472 | bool exit = false; |
472 | 473 | ||
473 | MENUITEM_STRINGLIST(menu,"VU Meter Menu",NULL,"Meter Type","Scale", | 474 | MENUITEM_STRINGLIST(menu,"VU Meter Menu",NULL,"Meter Type","Scale", |
474 | "Minimeters","Decay Speed","Quit"); | 475 | "Minimeters","Decay Speed","Playback Control", |
476 | "Quit"); | ||
475 | 477 | ||
476 | static const struct opt_items meter_type_option[2] = { | 478 | static const struct opt_items meter_type_option[2] = { |
477 | { "Analog", -1 }, | 479 | { "Analog", -1 }, |
@@ -536,6 +538,10 @@ static bool vu_meter_menu(void) | |||
536 | break; | 538 | break; |
537 | 539 | ||
538 | case 4: | 540 | case 4: |
541 | playback_control(NULL); | ||
542 | break; | ||
543 | |||
544 | case 5: | ||
539 | exit = true; | 545 | exit = true; |
540 | /* fall through to exit the menu */ | 546 | /* fall through to exit the menu */ |
541 | default: | 547 | default: |