source: roaraudio/roard/include/roard.h @ 2017:419fb879b9e3

Last change on this file since 2017:419fb879b9e3 was 2017:419fb879b9e3, checked in by phi, 15 years ago

added support to annouce a location

File size: 2.8 KB
Line 
1//roard.h:
2
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
25#ifndef _ROARD_H_
26#define _ROARD_H_
27
28// need to include this first as we need the config
29#include <roaraudio.h>
30#include <libroarlight/libroarlight.h>
31
32
33#ifndef ROAR_TARGET_MICROCONTROLLER
34#include <signal.h>
35#endif
36
37#if defined(ROAR_HAVE_SELECT) && defined(ROAR_HAVE_H_SYS_SELECT)
38#include <sys/select.h>
39#endif
40
41#ifdef ROAR_HAVE_WAIT
42#include <sys/wait.h>
43#endif
44
45#if !defined(ROAR_TARGET_WIN32) && !defined(ROAR_TARGET_MICROCONTROLLER)
46#include <pwd.h>
47#endif
48
49#ifndef ROAR_TARGET_MICROCONTROLLER
50#include <sys/time.h>
51#include <time.h>
52#endif
53
54#ifdef ROAR_HAVE_LIBSLP
55#include <slp.h>
56#endif
57
58/*
59#ifdef __linux__
60#include <linux/unistd.h>
61#include <linux/ioprio.h>
62#endif
63*/
64
65#define ROAR_SUBSYS_NONE          0x00
66#define ROAR_SUBSYS_WAVEFORM      0x01
67#define ROAR_SUBSYS_MIDI          0x02
68#define ROAR_SUBSYS_CB            0x04
69#define ROAR_SUBSYS_LIGHT         0x08
70
71
72//#include "buffer.h"
73#include "codecfilter.h"
74#include "client.h"
75#include "driver.h"
76#include "output.h"
77#include "mixer.h"
78//#include "convert.h"
79#include "streams.h"
80#include "network.h"
81#include "commands.h"
82#include "req.h"
83#include "sources.h"
84#include "sample.h"
85#include "meta.h"
86#include "midi.h"
87#include "light.h"
88#include "lib.h"
89
90
91int alive;
92#ifdef ROAR_SUPPORT_LISTEN
93int g_no_listen;
94#endif
95
96uint32_t g_pos; // current possition in output stream
97
98int g_standby;
99int g_autostandby;
100
101int main_loop (int driver, DRIVER_USERDATA_T driver_inst, struct roar_audio_info * sa, int sysclocksync);
102void cleanup_listen_socket (int terminate);
103void clean_quit (void);
104void clean_quit_prep (void);
105
106void on_sig_int (int signum);
107void on_sig_chld (int signum);
108
109#ifdef ROAR_SUPPORT_LISTEN
110int g_listen_socket;
111#endif
112
113int g_self_client;
114
115int g_terminate;
116
117struct roar_audio_info * g_sa, * g_max_sa;
118
119struct roard_config {
120 uint32_t flags;
121 struct {
122  uint32_t flags;
123  struct roar_mixer_settings mixer;
124  int                        mixer_channels;
125 } streams[ROAR_DIR_DIRIDS];
126 char * location;
127} * g_config;
128
129#endif
130
131//ll
Note: See TracBrowser for help on using the repository browser.