[2352] | 1 | //midi.c: |
---|
| 2 | |
---|
| 3 | /* |
---|
[3811] | 4 | * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2009-2010 |
---|
[2352] | 5 | * The code (may) include prototypes and comments (and maybe |
---|
[4038] | 6 | * other code fragements) from OpenBSD's sndio. |
---|
[2352] | 7 | * |
---|
| 8 | * This file is part of libroaresd a part of RoarAudio, |
---|
| 9 | * a cross-platform sound system for both, home and professional use. |
---|
| 10 | * See README for details. |
---|
| 11 | * |
---|
| 12 | * This file is free software; you can redistribute it and/or modify |
---|
| 13 | * it under the terms of the GNU General Public License version 3 |
---|
| 14 | * as published by the Free Software Foundation. |
---|
| 15 | * |
---|
| 16 | * RoarAudio is distributed in the hope that it will be useful, |
---|
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 19 | * GNU General Public License for more details. |
---|
| 20 | * |
---|
| 21 | * You should have received a copy of the GNU General Public License |
---|
| 22 | * along with this software; see the file COPYING. If not, write to |
---|
[3517] | 23 | * the Free Software Foundation, 51 Franklin Street, Fifth Floor, |
---|
| 24 | * Boston, MA 02110-1301, USA. |
---|
[2352] | 25 | * |
---|
| 26 | * NOTE for everyone want's to change something and send patches: |
---|
| 27 | * read README and HACKING! There a addition information on |
---|
| 28 | * the license of this document you need to read before you send |
---|
| 29 | * any patches. |
---|
| 30 | */ |
---|
| 31 | |
---|
| 32 | #define ROAR_USE_OWN_SNDIO_HDL |
---|
| 33 | #include "libroarsndio.h" |
---|
| 34 | |
---|
[2355] | 35 | struct mio_hdl * mio_open (const char * name, unsigned mode, int nbio_flag) { |
---|
| 36 | return sio_open(name, mode, nbio_flag); |
---|
| 37 | } |
---|
| 38 | |
---|
| 39 | void mio_close (struct mio_hdl * hdl) { |
---|
| 40 | return sio_close(hdl); |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | size_t mio_write (struct mio_hdl * hdl, const void * addr, size_t nbytes) { |
---|
| 44 | return sio_write(hdl, addr, nbytes); |
---|
| 45 | } |
---|
| 46 | |
---|
| 47 | size_t mio_read (struct mio_hdl * hdl, void * addr, size_t nbytes) { |
---|
| 48 | return sio_read(hdl, addr, nbytes); |
---|
| 49 | } |
---|
| 50 | |
---|
| 51 | int mio_nfds (struct mio_hdl * hdl) { |
---|
| 52 | return mio_nfds(hdl); |
---|
| 53 | } |
---|
| 54 | |
---|
| 55 | int mio_pollfd (struct mio_hdl * hdl, struct pollfd * pfd, int events) { |
---|
| 56 | return sio_pollfd(hdl, pfd, events); |
---|
| 57 | } |
---|
| 58 | |
---|
| 59 | int mio_revents(struct mio_hdl * hdl, struct pollfd * pfd) { |
---|
| 60 | return sio_revents(hdl, pfd); |
---|
| 61 | } |
---|
| 62 | |
---|
| 63 | int mio_eof (struct mio_hdl * hdl) { |
---|
| 64 | return sio_eof(hdl); |
---|
| 65 | } |
---|
[2353] | 66 | |
---|
[2352] | 67 | //ll |
---|