[1592] | 1 | //all.h: |
---|
| 2 | |
---|
| 3 | /* |
---|
[5381] | 4 | * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008-2012, |
---|
[1592] | 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 |
---|
[3517] | 22 | * the Free Software Foundation, 51 Franklin Street, Fifth Floor, |
---|
| 23 | * Boston, MA 02110-1301, USA. |
---|
[1592] | 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 | |
---|
| 48 | gint ctrlsocket_get_session_id(void); |
---|
| 49 | |
---|
| 50 | void roar_init(void); |
---|
| 51 | void roar_about(void); |
---|
| 52 | void roar_configure(void); |
---|
| 53 | |
---|
| 54 | void roar_get_volume(int *l, int *r); |
---|
| 55 | void roar_set_volume(int l, int r); |
---|
| 56 | void roar_mixer_init(void); |
---|
| 57 | void roar_mixer_init_vol(int l, int r); |
---|
| 58 | |
---|
| 59 | int roar_playing(void); |
---|
| 60 | int roar_free(void); |
---|
| 61 | void roar_write(void *ptr, int length); |
---|
| 62 | void roar_close(void); |
---|
| 63 | void roar_flush(int time); |
---|
| 64 | void roar_pause(short p); |
---|
| 65 | int roar_open(AFormat fmt, int rate, int nch); |
---|
| 66 | int roar_get_output_time(void); |
---|
| 67 | int roar_get_written_time(void); |
---|
| 68 | |
---|
| 69 | int roar_update_metadata(void); |
---|
| 70 | int roar_chk_metadata(void); |
---|
| 71 | |
---|
| 72 | #define STATE_CONNECTED 1 |
---|
| 73 | #define STATE_PLAYING 2 |
---|
| 74 | #define STATE_NORECONNECT 4 |
---|
| 75 | |
---|
| 76 | struct 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 |
---|