Bump version numbers for 3.13
[maemo-rb.git] / apps / menus / menu_common.c
blobe8a2a91f1256b418af42f7352a6153c3e8955285
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2008 Dan Everton
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #include <stddef.h>
23 #include <limits.h>
24 #include "config.h"
25 #include "action.h"
26 #include "menu.h"
27 #include "menu_common.h"
28 #if CONFIG_CODEC == SWCODEC
29 #include "pcmbuf.h"
30 #endif
32 #if CONFIG_CODEC == SWCODEC
33 /* Use this callback if your menu adjusts DSP settings. */
34 int lowlatency_callback(int action, const struct menu_item_ex *this_item)
36 (void)this_item;
37 switch (action)
39 case ACTION_ENTER_MENUITEM: /* on entering an item */
40 pcmbuf_set_low_latency(true);
41 break;
42 case ACTION_EXIT_MENUITEM: /* on exit */
43 pcmbuf_set_low_latency(false);
44 break;
46 return action;
48 #endif