Changeset 2051:6486bbc371a2 in roaraudio for libroarsndio


Ignore:
Timestamp:
06/28/09 13:37:09 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

win32 fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarsndio/stream.c

    r2022 r2051  
    3636#define _i(x) (hdl->info.x) 
    3737int    sio_start  (struct sio_hdl * hdl) { 
     38#ifndef ROAR_TARGET_WIN32 
    3839 int fh; 
     40#endif 
    3941 
    4042 // TODO: FIXME: use full VIO support here, not fh->vio! 
     
    4648  return 0; 
    4749 
     50#ifndef ROAR_TARGET_WIN32 
    4851 if ( (fh = roar_simple_new_stream_obj(&(hdl->con), &(hdl->stream), _i(rate), _i(channels), _i(bits), _i(codec), ROAR_DIR_PLAY)) == -1 ) 
    4952  return 0; 
     
    5558  return 0; 
    5659 } 
     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 
    5768 
    5869 hdl->stream_opened = 1; 
Note: See TracChangeset for help on using the changeset viewer.