source: roaraudio/plugins/audacious/all.h @ 3105:eb48aea36705

Last change on this file since 3105:eb48aea36705 was 1592:5642a3553814, checked in by phi, 15 years ago

added basic code for audacious, need to do some clean up, also need to check configure and make in

File size: 2.4 KB
Line 
1//all.h:
2
3/*
4 *      Copyright (C) Philipp 'ph3-der-loewe' Schafft    - 2008,
5 *                    Daniel Duntemann <dauxx@dauxx.org> - 2009
6 *
7 *  This file is part of the XMMS RoarAudio output plugin a part of RoarAudio,
8 *  a cross-platform sound system for both, home and professional use.
9 *  See README for details.
10 *
11 *  This file is free software; you can redistribute it and/or modify
12 *  it under the terms of the GNU General Public License version 3
13 *  as published by the Free Software Foundation.
14 *
15 *  RoarAudio 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
18 *  GNU General Public License for more details.
19 *
20 *  You should have received a copy of the GNU General Public License
21 *  along with this software; see the file COPYING.  If not, write to
22 *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
23 *
24 */
25
26#ifndef _ALL_H_
27#define _ALL_H_
28
29#include <roaraudio.h>
30
31//#include "xmms/i18n.h"
32#include <gtk/gtk.h>
33#include <gdk/gdkkeysyms.h>
34#include <stdio.h>
35#include <string.h>
36
37#include <audacious/configdb.h>
38#include <audacious/util.h>
39#include <audacious/plugin.h>
40#include <audacious/audctrl.h>
41/* #include <audacious/dirbrowser.h> */
42
43
44
45#define _(x) (x)
46
47gint ctrlsocket_get_session_id(void);
48
49void roar_init(void);
50void roar_about(void);
51void roar_configure(void);
52
53void roar_get_volume(int *l, int *r);
54void roar_set_volume(int l, int r);
55void roar_mixer_init(void);
56void roar_mixer_init_vol(int l, int r);
57
58int roar_playing(void);
59int roar_free(void);
60void roar_write(void *ptr, int length);
61void roar_close(void);
62void roar_flush(int time);
63void roar_pause(short p);
64int roar_open(AFormat fmt, int rate, int nch);
65int roar_get_output_time(void);
66int roar_get_written_time(void);
67
68int roar_update_metadata(void);
69int roar_chk_metadata(void);
70
71#define STATE_CONNECTED   1
72#define STATE_PLAYING     2
73#define STATE_NORECONNECT 4
74
75struct xmms_roar_out {
76 int                 state;
77 char              * server;
78 struct roar_connection con;
79 struct roar_stream     stream;
80 int                 data_fh;
81 long unsigned int   written;
82 long unsigned int   bps;
83 int                 session;
84 int                 pause;
85 struct {
86  int                server_type;
87  int                port;
88  int              * proxy_type;
89  char             * proxy;
90  char             * player_name;
91 } cfg;
92} g_inst;
93
94#endif
95
96//ll
Note: See TracBrowser for help on using the repository browser.