Changeset 2358:1a38bdcc3e4d in roaraudio


Ignore:
Timestamp:
08/14/09 22:18:31 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

set stream dir from hdl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarsndio/stream.c

    r2051 r2358  
    4949 
    5050#ifndef ROAR_TARGET_WIN32 
    51  if ( (fh = roar_simple_new_stream_obj(&(hdl->con), &(hdl->stream), _i(rate), _i(channels), _i(bits), _i(codec), ROAR_DIR_PLAY)) == -1 ) 
     51 if ( (fh = roar_simple_new_stream_obj(&(hdl->con), &(hdl->stream), _i(rate), _i(channels), _i(bits), _i(codec), hdl->dir)) == -1 ) 
    5252  return 0; 
    5353 
     
    6262  return 0; 
    6363 
    64  if (roar_vio_simple_stream(&(hdl->svio),  _i(rate), _i(channels), _i(bits), _i(codec), NULL, ROAR_DIR_PLAY, "libroarsndio(win32)") == -1 ) { 
     64 if (roar_vio_simple_stream(&(hdl->svio),  _i(rate), _i(channels), _i(bits), _i(codec), NULL, hdl->dir, "libroarsndio(win32)") == -1 ) { 
    6565  return 0; 
    6666 } 
Note: See TracChangeset for help on using the changeset viewer.