source: roaraudio/roard/include/roard.h @ 1917:4b3dc18ab7d5

Last change on this file since 1917:4b3dc18ab7d5 was 1917:4b3dc18ab7d5, checked in by phi, 15 years ago

added IDs for subsystems

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