Changeset 2051:6486bbc371a2 in roaraudio for libroarsndio
- Timestamp:
- 06/28/09 13:37:09 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroarsndio/stream.c
r2022 r2051 36 36 #define _i(x) (hdl->info.x) 37 37 int sio_start (struct sio_hdl * hdl) { 38 #ifndef ROAR_TARGET_WIN32 38 39 int fh; 40 #endif 39 41 40 42 // TODO: FIXME: use full VIO support here, not fh->vio! … … 46 48 return 0; 47 49 50 #ifndef ROAR_TARGET_WIN32 48 51 if ( (fh = roar_simple_new_stream_obj(&(hdl->con), &(hdl->stream), _i(rate), _i(channels), _i(bits), _i(codec), ROAR_DIR_PLAY)) == -1 ) 49 52 return 0; … … 55 58 return 0; 56 59 } 60 #else 61 if ( roar_stream_new_by_id(&(hdl->stream), -1) == -1 ) 62 return 0; 63 64 if (roar_vio_simple_stream(&(hdl->svio), _i(rate), _i(channels), _i(bits), _i(codec), NULL, ROAR_DIR_PLAY, "libroarsndio(win32)") == -1 ) { 65 return 0; 66 } 67 #endif 57 68 58 69 hdl->stream_opened = 1;
Note: See TracChangeset
for help on using the changeset viewer.