2005-11-18 09:03:25 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
2010-01-03 14:28:09 +00:00
|
|
|
* $Id$
|
2005-11-18 09:03:25 +00:00
|
|
|
*
|
2008-05-05 09:40:22 +00:00
|
|
|
* Copyright (C) 2002 Björn Stenberg
|
2005-11-18 09:03:25 +00:00
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2005-11-18 09:03:25 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
2009-08-03 15:46:21 +00:00
|
|
|
#ifndef _WPS_H_
|
|
|
|
#define _WPS_H_
|
2022-10-02 18:44:16 +00:00
|
|
|
|
2005-11-17 20:20:01 +00:00
|
|
|
#include <stdbool.h>
|
2009-08-03 15:46:21 +00:00
|
|
|
|
2022-10-02 20:05:32 +00:00
|
|
|
struct mp3entry;
|
|
|
|
|
|
|
|
/* Please don't add anything else to here... */
|
|
|
|
struct wps_state
|
|
|
|
{
|
|
|
|
struct mp3entry *id3;
|
|
|
|
struct mp3entry *nid3;
|
|
|
|
int ff_rewind_count;
|
|
|
|
bool paused;
|
|
|
|
};
|
|
|
|
|
2022-10-02 18:44:16 +00:00
|
|
|
long gui_wps_show(void);
|
2005-11-17 20:20:01 +00:00
|
|
|
|
2011-05-09 12:59:46 +00:00
|
|
|
/* fade (if enabled) and pause the audio, optionally rewind a little */
|
2022-10-02 18:47:51 +00:00
|
|
|
void pause_action(bool updatewps);
|
|
|
|
void unpause_action(bool updatewps);
|
2011-03-22 09:31:45 +00:00
|
|
|
void wps_do_playpause(bool updatewps);
|
2005-11-17 20:20:01 +00:00
|
|
|
|
2022-10-02 20:05:32 +00:00
|
|
|
struct wps_state *get_wps_state(void);
|
|
|
|
|
2010-01-06 14:48:42 +00:00
|
|
|
/* in milliseconds */
|
2022-10-02 18:45:20 +00:00
|
|
|
#define DEFAULT_SKIP_THRESH 3000l
|
2010-01-06 14:48:42 +00:00
|
|
|
|
2009-08-03 15:46:21 +00:00
|
|
|
#endif /* _WPS_H_ */
|