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 | |
---|
44 | gint ctrlsocket_get_session_id(void); |
---|
45 | |
---|
46 | void roar_init(void); |
---|
47 | void roar_about(void); |
---|
48 | void roar_configure(void); |
---|
49 | |
---|
50 | void roar_get_volume(int *l, int *r); |
---|
51 | void roar_set_volume(int l, int r); |
---|
52 | void roar_mixer_init(void); |
---|
53 | void roar_mixer_init_vol(int l, int r); |
---|
54 | |
---|
55 | int roar_playing(void); |
---|
56 | int roar_free(void); |
---|
57 | void roar_write(void *ptr, int length); |
---|
58 | void roar_close(void); |
---|
59 | void roar_flush(int time); |
---|
60 | void roar_pause(short p); |
---|
61 | int roar_open(AFormat fmt, int rate, int nch); |
---|
62 | int roar_get_output_time(void); |
---|
63 | int roar_get_written_time(void); |
---|
64 | |
---|
65 | int roar_update_metadata(void); |
---|
66 | int roar_chk_metadata(void); |
---|
67 | |
---|
68 | #define STATE_CONNECTED 1 |
---|
69 | #define STATE_PLAYING 2 |
---|
70 | #define STATE_NORECONNECT 4 |
---|
71 | |
---|
72 | struct 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 l, r; |
---|
84 | } mixer; |
---|
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 |
---|