1 /* -------------------------------------------------------------------------
2 * audacious.h: conky support for Audacious audio player
4 * http://audacious-media-player.org
6 * Copyright (C) 2005 Philip Kovacs kovacsp3@comcast.net
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2.1 of the License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 * --------------------------------------------------------------------------- */
28 /* 11 keys comprise the audacious information. */
29 enum _audacious_keys {
32 AUDACIOUS_SONG_LENGTH,
33 AUDACIOUS_SONG_LENGTH_SECONDS,
34 AUDACIOUS_SONG_LENGTH_FRAMES,
35 AUDACIOUS_SONG_OUTPUT_LENGTH,
36 AUDACIOUS_SONG_OUTPUT_LENGTH_SECONDS,
37 AUDACIOUS_SONG_OUTPUT_LENGTH_FRAMES,
38 AUDACIOUS_SONG_BITRATE,
39 AUDACIOUS_SONG_FREQUENCY,
40 AUDACIOUS_SONG_CHANNELS
43 /* 11 slots for the audacious values */
44 typedef char audacious_t[11][128];
46 /* Service routine for the conky main thread */
47 void update_audacious(void);
50 void *audacious_thread_func(void *);