Changeset 2843:c25179bbac4d in roaraudio for libroarsndio
- Timestamp:
- 10/03/09 18:49:50 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroarsndio/stream.c
r2574 r2843 77 77 #define _i(x) (hdl->info.x) 78 78 int sio_start (struct sio_hdl * hdl) { 79 #ifndef ROAR_TARGET_WIN3280 int fh;81 #endif82 79 83 80 // TODO: FIXME: use full VIO support here, not fh->vio! … … 89 86 return 0; 90 87 91 #ifndef ROAR_TARGET_WIN32 92 if ( (fh = roar_simple_new_stream_obj(&(hdl->con), &(hdl->stream), _i(rate), _i(channels), _i(bits), _i(codec), hdl->dir)) == -1 )88 if ( roar_vio_simple_new_stream_obj(&(hdl->svio), &(hdl->con), &(hdl->stream), 89 _i(rate), _i(channels), _i(bits), _i(codec), hdl->dir) == -1 ) 93 90 return 0; 94 91 95 92 ROAR_DBG("sio_start(hdl=%p): rate=%i, channels=%i, bits=%i, codec=%i", hdl, _i(rate), _i(channels), _i(bits), _i(codec)); 96 93 97 if ( roar_vio_open_fh_socket(&(hdl->svio), fh) == -1 ) {98 close(fh);99 return 0;100 }101 102 94 send_vol_event(hdl); 103 #else104 if ( roar_stream_new_by_id(&(hdl->stream), -1) == -1 )105 return 0;106 107 if (roar_vio_simple_stream(&(hdl->svio), _i(rate), _i(channels), _i(bits), _i(codec), NULL, hdl->dir, "libroarsndio(win32)") == -1 ) {108 return 0;109 }110 111 // FIXME: this does not work in this case112 //send_vol_event(hdl);113 #endif114 95 115 96 hdl->stream_opened = 1;
Note: See TracChangeset
for help on using the changeset viewer.