Changeset 1573:7c378b33f20f in roaraudio


Ignore:
Timestamp:
04/13/09 02:05:00 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use connection based simple API, not stream based simple API

Location:
libroarsndio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libroarsndio/libroarsndio.c

    r1571 r1573  
    4545 memset(hdl, 0, sizeof(struct sio_hdl)); 
    4646 
     47 if ( roar_simple_connect(&(hdl->con), name, "libroarsndio") == -1 ) { 
     48  free(hdl); 
     49  return NULL; 
     50 } 
     51 
    4752 sio_initpar(&(hdl->para)); 
    4853 
     
    6166 if ( hdl->fh == -1 ) 
    6267  close(hdl->fh); 
     68 
     69 roar_disconnect(&(hdl->con)); 
    6370 
    6471 free(hdl); 
  • libroarsndio/stream.c

    r1571 r1573  
    4242  return 0; 
    4343 
    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 ) 
    4545  return 0; 
    4646 
Note: See TracChangeset for help on using the changeset viewer.