Changeset 1573:7c378b33f20f in roaraudio for libroarsndio/libroarsndio.c


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

File:
1 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); 
Note: See TracChangeset for help on using the changeset viewer.