1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2008 Dan Everton
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
25 #include "menu_common.h"
26 #if CONFIG_CODEC == SWCODEC
30 #if CONFIG_CODEC == SWCODEC
31 /* Use this callback if your menu adjusts DSP settings. */
32 int lowlatency_callback(int action
, const struct menu_item_ex
*this_item
)
37 case ACTION_ENTER_MENUITEM
: /* on entering an item */
38 pcmbuf_set_low_latency(true);
40 case ACTION_EXIT_MENUITEM
: /* on exit */
41 pcmbuf_set_low_latency(false);