1 | //all.h: |
---|
2 | |
---|
3 | /* |
---|
4 | * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008-2012 |
---|
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, 51 Franklin Street, Fifth Floor, |
---|
22 | * Boston, MA 02110-1301, 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 "xmms/plugin.h" |
---|
38 | #include "xmms/xmmsctrl.h" |
---|
39 | #include "xmms/dirbrowser.h" |
---|
40 | #include "xmms/configfile.h" |
---|
41 | #include "xmms/util.h" |
---|
42 | |
---|
43 | #define _(x) (x) |
---|
44 | |
---|
45 | gint ctrlsocket_get_session_id(void); |
---|
46 | |
---|
47 | void roar_init(void); |
---|
48 | void roar_about(void); |
---|
49 | void roar_configure(void); |
---|
50 | |
---|
51 | void roar_get_volume(int *l, int *r); |
---|
52 | void roar_set_volume(int l, int r); |
---|
53 | void roar_mixer_init(void); |
---|
54 | void roar_mixer_init_vol(int l, int r); |
---|
55 | |
---|
56 | int roar_playing(void); |
---|
57 | int roar_free(void); |
---|
58 | void roar_write(void *ptr, int length); |
---|
59 | void roar_close(void); |
---|
60 | void roar_flush(int time); |
---|
61 | void roar_pause(short p); |
---|
62 | int roar_open(AFormat fmt, int rate, int nch); |
---|
63 | int roar_get_output_time(void); |
---|
64 | int roar_get_written_time(void); |
---|
65 | |
---|
66 | int roar_update_metadata(void); |
---|
67 | int roar_chk_metadata(void); |
---|
68 | |
---|
69 | #define STATE_CONNECTED 1 |
---|
70 | #define STATE_PLAYING 2 |
---|
71 | #define STATE_NORECONNECT 4 |
---|
72 | |
---|
73 | struct xmms_roar_out { |
---|
74 | int state; |
---|
75 | char * server; |
---|
76 | struct roar_connection con; |
---|
77 | struct roar_stream stream; |
---|
78 | struct roar_vio_calls vio; |
---|
79 | long unsigned int written; |
---|
80 | long unsigned int bps; |
---|
81 | int session; |
---|
82 | int pause; |
---|
83 | struct { |
---|
84 | int l, r; |
---|
85 | } mixer; |
---|
86 | struct { |
---|
87 | int server_type; |
---|
88 | int port; |
---|
89 | char * player_name; |
---|
90 | } cfg; |
---|
91 | } g_inst; |
---|
92 | |
---|
93 | #endif |
---|
94 | |
---|
95 | //ll |
---|