Changeset 1567:a043a04095ad in roaraudio for libroarsndio


Ignore:
Timestamp:
04/13/09 01:41:13 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

open audio connection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarsndio/stream.c

    r1563 r1567  
    3333#include "libroarsndio.h" 
    3434 
     35#define _i(x) (hdl->info.x) 
    3536int    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; 
    3747} 
     48#undef _i 
    3849 
    3950int    sio_stop   (struct sio_hdl * hdl) { 
Note: See TracChangeset for help on using the changeset viewer.