source: roaraudio/roard/include/roard.h @ 3353:6024f61f2598

Last change on this file since 3353:6024f61f2598 was 3353:6024f61f2598, checked in by phi, 14 years ago

added dummy plugins.[ch]

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"
[3255]99#include "emul_simple.h"
[0]100#include "sources.h"
[40]101#include "sample.h"
[89]102#include "meta.h"
[244]103#include "midi.h"
[2446]104#include "ssynth.h"
[1816]105#include "light.h"
[2236]106#include "raw.h"
[2717]107#include "rdtcs.h"
[2945]108#include "waveform.h"
[245]109#include "lib.h"
[3353]110#include "plugins.h"
[0]111
[242]112
[0]113int alive;
[1494]114#ifdef ROAR_SUPPORT_LISTEN
[1155]115int g_no_listen;
[1494]116#endif
[0]117
[246]118uint32_t g_pos; // current possition in output stream
119
[0]120int g_standby;
[920]121int g_autostandby;
[0]122
[905]123int main_loop (int driver, DRIVER_USERDATA_T driver_inst, struct roar_audio_info * sa, int sysclocksync);
[574]124void cleanup_listen_socket (int terminate);
[0]125void clean_quit (void);
126void clean_quit_prep (void);
127
128void on_sig_int (int signum);
[2732]129void on_sig_term (int signum);
[248]130void on_sig_chld (int signum);
[2112]131void on_sig_usr1 (int signum);
[0]132
[1494]133#ifdef ROAR_SUPPORT_LISTEN
[3253]134struct roard_listen {
[3128]135 int socket;
136 int proto;
137 union {
138  void * vp;
139  int    si;
140  struct {
141   int                    dir;
142   struct roar_audio_info info;
143  } stpl;
144 } inst;
145} g_listen[ROAR_MAX_LISTEN_SOCKETS];
[1494]146#endif
[0]147
[37]148int g_self_client;
149
[71]150int g_terminate;
151
[1609]152struct roar_audio_info * g_sa, * g_max_sa;
153
154struct roard_config {
155 uint32_t flags;
156 struct {
157  uint32_t flags;
158  struct roar_mixer_settings mixer;
159  int                        mixer_channels;
160 } streams[ROAR_DIR_DIRIDS];
[2017]161 char * location;
[3039]162 size_t jumbo_mtu;
[1609]163} * g_config;
[0]164
165#endif
166
167//ll
Note: See TracBrowser for help on using the repository browser.