source: roaraudio/roard/include/roard.h @ 1964:331ef590817a

Last change on this file since 1964:331ef590817a was 1964:331ef590817a, checked in by phi, 15 years ago

include headers from libroarlight

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