Changeset 3861:1afd922562eb in roaraudio


Ignore:
Timestamp:
05/16/10 23:09:37 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use VIO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarlight.c

    r3811 r3861  
    5151 int32_t chan, val; 
    5252 struct roar_roardmx_message mes; 
    53  int fh;                    //TODO: we should use pure VIO here 
    5453 struct roar_vio_calls vio; 
    5554 
     
    7978 } 
    8079 
    81  if ( (fh = roar_simple_new_stream(con, 
    82                                    ROAR_RATE_DEFAULT, ROAR_CHANNELS_DEFAULT, ROAR_BITS_DEFAULT, 
    83                                    ROAR_CODEC_ROARDMX, ROAR_DIR_LIGHT_IN 
    84                                   )) == -1 ) 
     80 if ( roar_vio_simple_new_stream_obj(&vio, con, NULL, 
     81                                     ROAR_RATE_DEFAULT, ROAR_CHANNELS_DEFAULT, ROAR_BITS_DEFAULT, 
     82                                     ROAR_CODEC_ROARDMX, ROAR_DIR_LIGHT_IN) == -1 ) 
    8583  return -1; 
    86  
    87  if ( roar_vio_open_fh_socket(&vio, fh) == -1 ) { 
    88   close(fh); 
    89   return -1; 
    90  } 
    9184 
    9285 if ( roar_roardmx_message_send(&mes, &vio) == -1 ) { 
Note: See TracChangeset for help on using the changeset viewer.