source: roaraudio/plugins/audacious/all.h @ 5381:430b1d26e12d

Last change on this file since 5381:430b1d26e12d was 5381:430b1d26e12d, checked in by phi, 12 years ago

updated copyright years

File size: 2.5 KB
Line 
1//all.h:
2
3/*
4 *      Copyright (C) Philipp 'ph3-der-loewe' Schafft    - 2008-2012,
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, 51 Franklin Street, Fifth Floor,
23 *  Boston, MA 02110-1301, USA.
24 *
25 */
26
27#ifndef _ALL_H_
28#define _ALL_H_
29
30#include <roaraudio.h>
31
32//#include "xmms/i18n.h"
33#include <gtk/gtk.h>
34#include <gdk/gdkkeysyms.h>
35#include <stdio.h>
36#include <string.h>
37
38#include <audacious/configdb.h>
39#include <audacious/util.h>
40#include <audacious/plugin.h>
41#include <audacious/audctrl.h>
42/* #include <audacious/dirbrowser.h> */
43
44
45
46#define _(x) (x)
47
48gint ctrlsocket_get_session_id(void);
49
50void roar_init(void);
51void roar_about(void);
52void roar_configure(void);
53
54void roar_get_volume(int *l, int *r);
55void roar_set_volume(int l, int r);
56void roar_mixer_init(void);
57void roar_mixer_init_vol(int l, int r);
58
59int roar_playing(void);
60int roar_free(void);
61void roar_write(void *ptr, int length);
62void roar_close(void);
63void roar_flush(int time);
64void roar_pause(short p);
65int roar_open(AFormat fmt, int rate, int nch);
66int roar_get_output_time(void);
67int roar_get_written_time(void);
68
69int roar_update_metadata(void);
70int roar_chk_metadata(void);
71
72#define STATE_CONNECTED   1
73#define STATE_PLAYING     2
74#define STATE_NORECONNECT 4
75
76struct xmms_roar_out {
77 int                 state;
78 char              * server;
79 struct roar_connection con;
80 struct roar_stream     stream;
81 int                 data_fh;
82 long unsigned int   written;
83 long unsigned int   bps;
84 int                 session;
85 int                 pause;
86 struct {
87  int                server_type;
88  int                port;
89  int              * proxy_type;
90  char             * proxy;
91  char             * player_name;
92 } cfg;
93} g_inst;
94
95#endif
96
97//ll
Note: See TracBrowser for help on using the repository browser.