[0] | 1 | //roard.h: |
---|
| 2 | |
---|
[668] | 3 | /* |
---|
| 4 | * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008 |
---|
| 5 | * |
---|
| 6 | * This file is part of roard 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 | |
---|
[0] | 25 | #ifndef _ROARD_H_ |
---|
| 26 | #define _ROARD_H_ |
---|
| 27 | |
---|
| 28 | #include <signal.h> |
---|
| 29 | #include <sys/select.h> |
---|
[248] | 30 | #include <sys/wait.h> |
---|
[0] | 31 | #include <roaraudio.h> |
---|
[444] | 32 | #include <pwd.h> |
---|
[242] | 33 | |
---|
[243] | 34 | /* |
---|
[242] | 35 | #ifdef __linux__ |
---|
[243] | 36 | #include <linux/unistd.h> |
---|
[242] | 37 | #include <linux/ioprio.h> |
---|
| 38 | #endif |
---|
[243] | 39 | */ |
---|
[242] | 40 | |
---|
| 41 | |
---|
[0] | 42 | //#include "buffer.h" |
---|
[247] | 43 | #include "codecfilter.h" |
---|
[0] | 44 | #include "client.h" |
---|
| 45 | #include "driver.h" |
---|
| 46 | #include "output.h" |
---|
| 47 | #include "mixer.h" |
---|
| 48 | //#include "convert.h" |
---|
| 49 | #include "streams.h" |
---|
| 50 | #include "network.h" |
---|
| 51 | #include "commands.h" |
---|
| 52 | #include "req.h" |
---|
| 53 | #include "sources.h" |
---|
[40] | 54 | #include "sample.h" |
---|
[89] | 55 | #include "meta.h" |
---|
[244] | 56 | #include "midi.h" |
---|
[245] | 57 | #include "lib.h" |
---|
[0] | 58 | |
---|
[242] | 59 | |
---|
[0] | 60 | int alive; |
---|
| 61 | |
---|
[246] | 62 | uint32_t g_pos; // current possition in output stream |
---|
| 63 | |
---|
[0] | 64 | int g_standby; |
---|
[920] | 65 | int g_autostandby; |
---|
[0] | 66 | |
---|
[905] | 67 | int main_loop (int driver, DRIVER_USERDATA_T driver_inst, struct roar_audio_info * sa, int sysclocksync); |
---|
[574] | 68 | void cleanup_listen_socket (int terminate); |
---|
[0] | 69 | void clean_quit (void); |
---|
| 70 | void clean_quit_prep (void); |
---|
| 71 | |
---|
| 72 | void on_sig_int (int signum); |
---|
[248] | 73 | void on_sig_chld (int signum); |
---|
[0] | 74 | |
---|
| 75 | int g_listen_socket; |
---|
| 76 | |
---|
[37] | 77 | int g_self_client; |
---|
| 78 | |
---|
[71] | 79 | int g_terminate; |
---|
| 80 | |
---|
[0] | 81 | struct roar_audio_info * g_sa; |
---|
| 82 | |
---|
| 83 | #endif |
---|
| 84 | |
---|
| 85 | //ll |
---|