source: roaraudio/plugins/xmms/all.h @ 1106:b71671032077

Last change on this file since 1106:b71671032077 was 1106:b71671032077, checked in by phi, 15 years ago

added all.h and gui.c, added mor config vars, read parts of the config foem XMMS configfile

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