source: roaraudio/libroarsndio/midi.c @ 3517:1a3218a3fc5b

Last change on this file since 3517:1a3218a3fc5b was 3517:1a3218a3fc5b, checked in by phi, 14 years ago

updated license headers, FSF moved office

File size: 2.2 KB
Line 
1//midi.c:
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, 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#define ROAR_USE_OWN_SNDIO_HDL
35#include "libroarsndio.h"
36
37struct mio_hdl * mio_open   (const char * name, unsigned mode, int nbio_flag) {
38 return sio_open(name, mode, nbio_flag);
39}
40
41void             mio_close  (struct mio_hdl * hdl) {
42 return sio_close(hdl);
43}
44
45size_t           mio_write  (struct mio_hdl * hdl, const void * addr, size_t nbytes) {
46 return sio_write(hdl, addr, nbytes);
47}
48
49size_t           mio_read   (struct mio_hdl * hdl, void * addr, size_t nbytes) {
50 return sio_read(hdl, addr, nbytes);
51}
52
53int              mio_nfds   (struct mio_hdl * hdl) {
54 return mio_nfds(hdl);
55}
56
57int              mio_pollfd (struct mio_hdl * hdl, struct pollfd * pfd, int events) {
58 return sio_pollfd(hdl, pfd, events);
59}
60
61int              mio_revents(struct mio_hdl * hdl, struct pollfd * pfd) {
62 return sio_revents(hdl, pfd);
63}
64
65int              mio_eof    (struct mio_hdl * hdl) {
66 return sio_eof(hdl);
67}
68
69//ll
Note: See TracBrowser for help on using the repository browser.