forked from len0rd/rockbox
FS#7704 - Talk support for plugins
Original patch by Mario Lang Heavily updated by Igor Poretsky Further updated by myself This patch breaks binary API compatibility by placing the new functions where they make the most logical sense. IMO this is the better approach to take given the scope of the changes needed for talk support. Since binary API is changing, the patch also moves some other functions around to more logical locations. As well as voice support in plugins, this patch voice-enables several simple plugins. There will be follow-up patches for many plugins that build on this one. Change-Id: I18070c06e77e8a3c016c2eb6b6c5dbe6633b9b54
This commit is contained in:
parent
9c17734394
commit
55eb1c54eb
12 changed files with 583 additions and 133 deletions
|
@ -90,21 +90,21 @@ static bool repeat_mode(void)
|
|||
|
||||
return false;
|
||||
}
|
||||
MENUITEM_FUNCTION(prevtrack_item, 0, "Previous Track",
|
||||
MENUITEM_FUNCTION(prevtrack_item, 0, ID2P(LANG_PREVTRACK),
|
||||
prevtrack, NULL, NULL, Icon_NOICON);
|
||||
MENUITEM_FUNCTION(playpause_item, 0, "Pause / Play",
|
||||
MENUITEM_FUNCTION(playpause_item, 0, ID2P(LANG_PLAYPAUSE),
|
||||
play, NULL, NULL, Icon_NOICON);
|
||||
MENUITEM_FUNCTION(stop_item, 0, "Stop Playback",
|
||||
MENUITEM_FUNCTION(stop_item, 0, ID2P(LANG_STOP_PLAYBACK),
|
||||
stop, NULL, NULL, Icon_NOICON);
|
||||
MENUITEM_FUNCTION(nexttrack_item, 0, "Next Track",
|
||||
MENUITEM_FUNCTION(nexttrack_item, 0, ID2P(LANG_NEXTTRACK),
|
||||
nexttrack, NULL, NULL, Icon_NOICON);
|
||||
MENUITEM_FUNCTION(volume_item, 0, "Change Volume",
|
||||
MENUITEM_FUNCTION(volume_item, 0, ID2P(LANG_CHANGE_VOLUME),
|
||||
volume, NULL, NULL, Icon_NOICON);
|
||||
MENUITEM_FUNCTION(shuffle_item, 0, "Enable/Disable Shuffle",
|
||||
MENUITEM_FUNCTION(shuffle_item, 0, ID2P(LANG_CHANGE_SHUFFLE_MODE),
|
||||
shuffle, NULL, NULL, Icon_NOICON);
|
||||
MENUITEM_FUNCTION(repeat_mode_item, 0, "Change Repeat Mode",
|
||||
MENUITEM_FUNCTION(repeat_mode_item, 0, ID2P(LANG_CHANGE_REPEAT_MODE),
|
||||
repeat_mode, NULL, NULL, Icon_NOICON);
|
||||
MAKE_MENU(playback_control_menu, "Playback Control", NULL, Icon_NOICON,
|
||||
MAKE_MENU(playback_control_menu, ID2P(LANG_PLAYBACK_CONTROL), NULL, Icon_NOICON,
|
||||
&prevtrack_item, &playpause_item, &stop_item, &nexttrack_item,
|
||||
&volume_item, &shuffle_item, &repeat_mode_item);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue