Changeset 2357:9b4e7fe1368c in roaraudio
- Timestamp:
- 08/14/09 22:15:44 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroarsndio/libroarsndio.c
r2019 r2357 37 37 struct sio_hdl * hdl = NULL; 38 38 39 if ( mode != SIO_PLAY ) /* currently we only support playback */40 return NULL;41 42 39 if ( (hdl = malloc(sizeof(struct sio_hdl))) == NULL ) 43 40 return NULL; 44 41 45 42 memset(hdl, 0, sizeof(struct sio_hdl)); 43 44 switch (mode) { 45 case SIO_PLAY: 46 hdl->dir = ROAR_DIR_PLAY; 47 break; 48 case MIO_OUT: 49 case MIO_IN: 50 case SIO_REC: 51 case SIO_PLAY|SIO_REC: 52 case MIO_OUT|MIO_IN: 53 default: 54 free(hdl); 55 return NULL; 56 } 46 57 47 58 if ( roar_simple_connect(&(hdl->con), name, "libroarsndio") == -1 ) {
Note: See TracChangeset
for help on using the changeset viewer.