Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#7563 - Speak dynamic equalizer setting menus

Attached to Project: Rockbox
Opened by Stephane Doyon (sdoyon) - Thursday, 09 August 2007, 03:48 GMT+2
Last edited by Steve Bavin (pondlife) - Tuesday, 09 October 2007, 09:41 GMT+2
Task Type Patches
Category User Interface
Status Closed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

Dynamic menus use a callback function to provide the text of each menu
item. That's how the "Simple EQ Settings" menu is able to display a
configurable frequency in a menu item name, and it's also used in the
"Advanced EQ Settings" menu to avoid repetitive lang entries for Peak
Filter 1, 2 and 3. Those menu items are not spoken however.

What I did is simply to add a voice callback to dynamic menus, along side
the text_callback. The voice_callback goes ahead and speaks the item,
rather than returning lang IDs. It's called from the talk_menu_item()
function that speaks constant items.

And I implemented such callbacks for the two eq menus, of course.

The menu system macros are a bit painful to follow, but my modifications
are straightforward.
   dyn-menus-eq.diff (11.3 KiB)
 trunk/apps/menu.c            |   22 ++++++++++---
 trunk/apps/menu.h            |   14 +++++---
 trunk/apps/menus/eq_menu.c   |   68 +++++++++++++++++++++++++++++--------------
 trunk/apps/onplay.c          |    2 -
 trunk/apps/recorder/radio.c  |    2 -
 trunk/apps/root_menu.c       |    2 -
 trunk/apps/lang/english.lang |    2 -
 7 files changed, 74 insertions(+), 38 deletions(-)

This task depends upon

Closed by  Steve Bavin (pondlife)
Tuesday, 09 October 2007, 09:41 GMT+2
Reason for closing:  Accepted
Additional comments about closing:  Speak to Bagder or Zagor on IRC... :)
Comment by Sofian Babai (sofianbabai) - Thursday, 27 September 2007, 19:26 GMT+2
interesting patch. don't know why it hasn't been implmented since the other sounds settings are voiced.

Loading...