source: roaraudio/include/libroarsndio/libroarsndio.h @ 3811:49db840fb4f4

Last change on this file since 3811:49db840fb4f4 was 3811:49db840fb4f4, checked in by phi, 14 years ago

fixed some copyright statements

File size: 2.5 KB
Line 
1//libroarsndio.h:
2
3/*
4 *      Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2009-2010
5 *  The code (may) include prototypes and comments (and maybe
6 *  other code fragements) from EsounD.
7 *  They are mostly copyrighted by Eric B. Mitchell (aka 'Ricdude)
8 *  <ericmit@ix.netcom.com>. For more information see AUTHORS.esd.
9 *
10 *  This file is part of libroaresd a part of RoarAudio,
11 *  a cross-platform sound system for both, home and professional use.
12 *  See README for details.
13 *
14 *  This file is free software; you can redistribute it and/or modify
15 *  it under the terms of the GNU General Public License version 3
16 *  as published by the Free Software Foundation.
17 *
18 *  RoarAudio is distributed in the hope that it will be useful,
19 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
20 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 *  GNU General Public License for more details.
22 *
23 *  You should have received a copy of the GNU General Public License
24 *  along with this software; see the file COPYING.  If not, write to
25 *  the Free Software Foundation, 51 Franklin Street, Fifth Floor,
26 *  Boston, MA 02110-1301, USA.
27 *
28 *  NOTE for everyone want's to change something and send patches:
29 *  read README and HACKING! There a addition information on
30 *  the license of this document you need to read before you send
31 *  any patches.
32 */
33
34#ifndef _LIBROARSNDIO_H_
35#define _LIBROARSNDIO_H_
36
37#include <roaraudio.h>
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43#if defined(ROAR_HAVE_LIBSNDIO) && !defined(_ROAR_EMUL_LIBSNDIO) && !defined(ROAR_USE_OWN_SNDIO_HDL)
44#include <sndio.h>
45#else
46#define sio_hdl roar_sio_hdl
47#define mio_hdl roar_sio_hdl
48#include "sndiosym.h"
49#endif
50
51#if !defined(ROAR_HAVE_LIBSNDIO) || defined(ROAR_USE_OWN_SNDIO_HDL)
52#ifdef sio_hdl
53#undef sio_hdl
54#endif
55#define sio_hdl roar_sio_hdl
56
57#ifdef mio_hdl
58#undef mio_hdl
59#endif
60#define mio_hdl roar_sio_hdl
61#endif
62
63struct roar_sio_hdl {
64 char                   * device;
65// int              fh;
66 int                      stream_opened;
67 int                      dir;
68 int                      nonblock;
69 int                      ioerror;
70 struct roar_vio_calls    svio;
71 struct roar_connection   con;
72 struct roar_stream       stream;
73 struct roar_audio_info   info;
74 struct sio_par           para;
75 void                   (*on_move)(void * arg, int delta);
76 void                   * on_move_arg;
77 void                   (*on_vol )(void * arg, unsigned vol);
78 void                   * on_vol_arg;
79};
80
81#ifdef __cplusplus
82}
83#endif
84
85#endif
86
87//ll
Note: See TracBrowser for help on using the repository browser.