Changeset 1573:7c378b33f20f in roaraudio for libroarsndio
- Timestamp:
- 04/13/09 02:05:00 (15 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libroarsndio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libroarsndio/libroarsndio.c
r1571 r1573 45 45 memset(hdl, 0, sizeof(struct sio_hdl)); 46 46 47 if ( roar_simple_connect(&(hdl->con), name, "libroarsndio") == -1 ) { 48 free(hdl); 49 return NULL; 50 } 51 47 52 sio_initpar(&(hdl->para)); 48 53 … … 61 66 if ( hdl->fh == -1 ) 62 67 close(hdl->fh); 68 69 roar_disconnect(&(hdl->con)); 63 70 64 71 free(hdl); -
libroarsndio/stream.c
r1571 r1573 42 42 return 0; 43 43 44 if ( (hdl->fh = roar_simple_ play(_i(rate), _i(channels), _i(bits), _i(codec), hdl->device, "libroarsndio")) == -1 )44 if ( (hdl->fh = roar_simple_new_stream_obj(&(hdl->con), &(hdl->stream), _i(rate), _i(channels), _i(bits), _i(codec), ROAR_DIR_PLAY)) == -1 ) 45 45 return 0; 46 46
Note: See TracChangeset
for help on using the changeset viewer.