source: roaraudio/roard/include/roard.h @ 3207:76162d6ab87a

Last change on this file since 3207:76162d6ab87a was 3207:76162d6ab87a, checked in by phi, 14 years ago

use units.h

File size: 3.6 KB
RevLine 
[0]1//roard.h:
2
[668]3/*
[2446]4 *      Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008, 2009
[668]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
[2970]28// configure ROAR_INFO()
29int g_verbose;
30#define ROAR_DBG_INFOVAR g_verbose
31
[1482]32// need to include this first as we need the config
33#include <roaraudio.h>
[3207]34#include <roaraudio/units.h>
[1964]35#include <libroarlight/libroarlight.h>
[2283]36#include <libroareio/libroareio.h>
[1482]37
[2726]38#include <ctype.h>
[1482]39
[3056]40#ifdef ROAR_HAVE_H_SIGNAL
[0]41#include <signal.h>
[1482]42#endif
43
[1537]44#if defined(ROAR_HAVE_SELECT) && defined(ROAR_HAVE_H_SYS_SELECT)
[0]45#include <sys/select.h>
[1482]46#endif
47
48#ifdef ROAR_HAVE_WAIT
[248]49#include <sys/wait.h>
[1482]50#endif
51
52#if !defined(ROAR_TARGET_WIN32) && !defined(ROAR_TARGET_MICROCONTROLLER)
[444]53#include <pwd.h>
[1482]54#endif
55
[3202]56#ifdef ROAR_HAVE_H_SYS_TIME
[1198]57#include <sys/time.h>
[3202]58#endif
59#ifdef ROAR_HAVE_H_TIME
[1198]60#include <time.h>
[1482]61#endif
[242]62
[1993]63#ifdef ROAR_HAVE_LIBSLP
64#include <slp.h>
65#endif
66
[243]67/*
[242]68#ifdef __linux__
[243]69#include <linux/unistd.h>
[242]70#include <linux/ioprio.h>
71#endif
[243]72*/
[242]73
[1917]74#define ROAR_SUBSYS_NONE          0x00
75#define ROAR_SUBSYS_WAVEFORM      0x01
76#define ROAR_SUBSYS_MIDI          0x02
77#define ROAR_SUBSYS_CB            0x04
78#define ROAR_SUBSYS_LIGHT         0x08
[2232]79#define ROAR_SUBSYS_RAW           0x10
[2681]80#define ROAR_SUBSYS_COMPLEX       0x20
[2838]81#define ROAR_SUBSYS_RDTCS         0x40
[1917]82
[2530]83// listeing code:
84#define ROAR_MAX_LISTEN_SOCKETS  8
85
[0]86//#include "buffer.h"
[2674]87#include "codecfilter.h"
[2657]88#include "container_framework.h"
[0]89#include "client.h"
90#include "driver.h"
91#include "output.h"
92#include "mixer.h"
93//#include "convert.h"
94#include "streams.h"
95#include "network.h"
96#include "commands.h"
97#include "req.h"
[2519]98#include "emul_esd.h"
[0]99#include "sources.h"
[40]100#include "sample.h"
[89]101#include "meta.h"
[244]102#include "midi.h"
[2446]103#include "ssynth.h"
[1816]104#include "light.h"
[2236]105#include "raw.h"
[2717]106#include "rdtcs.h"
[2945]107#include "waveform.h"
[245]108#include "lib.h"
[0]109
[242]110
[0]111int alive;
[1494]112#ifdef ROAR_SUPPORT_LISTEN
[1155]113int g_no_listen;
[1494]114#endif
[0]115
[246]116uint32_t g_pos; // current possition in output stream
117
[0]118int g_standby;
[920]119int g_autostandby;
[0]120
[905]121int main_loop (int driver, DRIVER_USERDATA_T driver_inst, struct roar_audio_info * sa, int sysclocksync);
[574]122void cleanup_listen_socket (int terminate);
[0]123void clean_quit (void);
124void clean_quit_prep (void);
125
126void on_sig_int (int signum);
[2732]127void on_sig_term (int signum);
[248]128void on_sig_chld (int signum);
[2112]129void on_sig_usr1 (int signum);
[0]130
[1494]131#ifdef ROAR_SUPPORT_LISTEN
[3128]132struct {
133 int socket;
134 int proto;
135 union {
136  void * vp;
137  int    si;
138  struct {
139   int                    dir;
140   struct roar_audio_info info;
141  } stpl;
142 } inst;
143} g_listen[ROAR_MAX_LISTEN_SOCKETS];
[1494]144#endif
[0]145
[37]146int g_self_client;
147
[71]148int g_terminate;
149
[1609]150struct roar_audio_info * g_sa, * g_max_sa;
151
152struct roard_config {
153 uint32_t flags;
154 struct {
155  uint32_t flags;
156  struct roar_mixer_settings mixer;
157  int                        mixer_channels;
158 } streams[ROAR_DIR_DIRIDS];
[2017]159 char * location;
[3039]160 size_t jumbo_mtu;
[1609]161} * g_config;
[0]162
163#endif
164
165//ll
Note: See TracBrowser for help on using the repository browser.