source: roaraudio/include/libroarsndio/libroarsndio.h @ 3236:c6fba44d32cf

Last change on this file since 3236:c6fba44d32cf was 3236:c6fba44d32cf, checked in by phi, 14 years ago

spacing

File size: 2.4 KB
Line 
1//libroarsndio.h:
2
3/*
4 *      Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2009
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, 675 Mass Ave, Cambridge, MA 02139, USA.
26 *
27 *  NOTE for everyone want's to change something and send patches:
28 *  read README and HACKING! There a addition information on
29 *  the license of this document you need to read before you send
30 *  any patches.
31 */
32
33#ifndef _LIBROARSNDIO_H_
34#define _LIBROARSNDIO_H_
35
36#include <roaraudio.h>
37
38#ifdef __cplusplus
39extern "C" {
40#endif
41
42#if defined(ROAR_HAVE_LIBSNDIO) && !defined(_ROAR_EMUL_LIBSNDIO) && !defined(ROAR_USE_OWN_SNDIO_HDL)
43#include <sndio.h>
44#else
45#define sio_hdl roar_sio_hdl
46#define mio_hdl roar_sio_hdl
47#include "sndiosym.h"
48#endif
49
50#if !defined(ROAR_HAVE_LIBSNDIO) || defined(ROAR_USE_OWN_SNDIO_HDL)
51#ifdef sio_hdl
52#undef sio_hdl
53#endif
54#define sio_hdl roar_sio_hdl
55
56#ifdef mio_hdl
57#undef mio_hdl
58#endif
59#define mio_hdl roar_sio_hdl
60#endif
61
62struct roar_sio_hdl {
63 char                   * device;
64// int              fh;
65 int                      stream_opened;
66 int                      dir;
67 struct roar_vio_calls    svio;
68 struct roar_connection   con;
69 struct roar_stream       stream;
70 struct roar_audio_info   info;
71 struct sio_par           para;
72 void                   (*on_move)(void * arg, int delta);
73 void                   * on_move_arg;
74 void                   (*on_vol )(void * arg, unsigned vol);
75 void                   * on_vol_arg;
76};
77
78#ifdef __cplusplus
79}
80#endif
81
82#endif
83
84//ll
Note: See TracBrowser for help on using the repository browser.