Changeset 2351:0f61e46837d9 in roaraudio


Ignore:
Timestamp:
08/14/09 20:11:04 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added new prototypes for MIDI support

Location:
include/libroarsndio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroarsndio/libroarsndio.h

    r2019 r2351  
    5252#endif 
    5353#define sio_hdl roar_sio_hdl 
     54 
     55#ifdef mio_hdl 
     56#undef mio_hdl 
     57#endif 
     58#define mio_hdl roar_sio_hdl 
    5459#endif 
    5560 
  • include/libroarsndio/sndiosym.h

    r1578 r2351  
    4444#define SIO_PLAY        1 
    4545#define SIO_REC         2 
     46#define MIO_OUT         4 
     47#define MIO_IN          8 
    4648 
    4749#define SIO_IGNORE      0       /* pause during xrun */ 
     
    120122void   sio_onvol  (struct sio_hdl * hdl, void (*cb)(void * arg, unsigned vol), void * arg); 
    121123 
     124// MIDI: 
     125struct mio_hdl * mio_open   (const char * name, unsigned mode, int nbio_flag); 
     126void             mio_close  (struct mio_hdl * hdl); 
     127size_t           mio_write  (struct mio_hdl * hdl, const void * addr, size_t nbytes); 
     128size_t           mio_read   (struct mio_hdl * hdl, void * addr, size_t nbytes); 
     129int              mio_nfds   (struct mio_hdl * hdl); 
     130int              mio_pollfd (struct mio_hdl * hdl, struct pollfd * pfd, int events); 
     131int              mio_revents(struct mio_hdl * hdl, struct pollfd * pfd); 
     132int              mio_eof    (struct mio_hdl * hdl); 
     133 
    122134#endif 
    123135 
Note: See TracChangeset for help on using the changeset viewer.