Changeset 1567:a043a04095ad in roaraudio for libroarsndio
- Timestamp:
- 04/13/09 01:41:13 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroarsndio/stream.c
r1563 r1567 33 33 #include "libroarsndio.h" 34 34 35 #define _i(x) (hdl->info.x) 35 36 int sio_start (struct sio_hdl * hdl) { 36 return 0; 37 if ( hdl == NULL ) 38 return 0; 39 40 if ( hdl->fh != -1 ) 41 return 0; 42 43 if ( (hdl->fh = roar_simple_play(_i(rate), _i(channels), _i(bits), _i(codec), hdl->device, "libroarsndio")) == -1 ) 44 return 0; 45 46 return 1; 37 47 } 48 #undef _i 38 49 39 50 int sio_stop (struct sio_hdl * hdl) {
Note: See TracChangeset
for help on using the changeset viewer.