1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
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 ****************************************************************************/
27 #include "menu_common.h"
28 #if CONFIG_CODEC == SWCODEC
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
)
39 case ACTION_ENTER_MENUITEM
: /* on entering an item */
40 pcmbuf_set_low_latency(true);
42 case ACTION_EXIT_MENUITEM
: /* on exit */
43 pcmbuf_set_low_latency(false);