source: roaraudio/plugins/xmms/all.h @ 1715:f2efa612bee0

Last change on this file since 1715:f2efa612bee0 was 1121:476f1bd5f496, checked in by phi, 15 years ago

added a small usleep() of 100ms in error case, this improves the stability

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 <gdk/gdkkeysyms.h>
33#include <stdio.h>
34#include <string.h>
35
36#include "xmms/plugin.h"
37#include "xmms/xmmsctrl.h"
38#include "xmms/dirbrowser.h"
39#include "xmms/configfile.h"
40#include "xmms/util.h"
41
42#define _(x) (x)
43
44gint ctrlsocket_get_session_id(void);
45
46void roar_init(void);
47void roar_about(void);
48void roar_configure(void);
49
50void roar_get_volume(int *l, int *r);
51void roar_set_volume(int l, int r);
52void roar_mixer_init(void);
53void roar_mixer_init_vol(int l, int r);
54
55int roar_playing(void);
56int roar_free(void);
57void roar_write(void *ptr, int length);
58void roar_close(void);
59void roar_flush(int time);
60void roar_pause(short p);
61int roar_open(AFormat fmt, int rate, int nch);
62int roar_get_output_time(void);
63int roar_get_written_time(void);
64
65int roar_update_metadata(void);
66int roar_chk_metadata(void);
67
68#define STATE_CONNECTED   1
69#define STATE_PLAYING     2
70#define STATE_NORECONNECT 4
71
72struct xmms_roar_out {
73 int                 state;
74 char              * server;
75 struct roar_connection con;
76 struct roar_stream     stream;
77 int                 data_fh;
78 long unsigned int   written;
79 long unsigned int   bps;
80 int                 session;
81 int                 pause;
82 struct {
83  int                server_type;
84  int                port;
85  int              * proxy_type;
86  char             * proxy;
87  char             * player_name;
88 } cfg;
89} g_inst;
90
91#endif
92
93//ll
Note: See TracBrowser for help on using the repository browser.