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