Changeset 2048:4bf10a019748 in roaraudio


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

send data to server

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarlight.c

    r2046 r2048  
    5050 int32_t chan, val; 
    5151 struct roar_roardmx_message mes; 
     52 int fh;                    //TODO: we should use pure VIO here 
     53 struct roar_vio_calls vio; 
    5254 
    5355 roar_roardmx_message_new_sset(&mes); 
     
    7577   return -1; 
    7678 } 
     79 
     80 if ( (fh = roar_simple_new_stream(con, 
     81                                   ROAR_RATE_DEFAULT, ROAR_CHANNELS_DEFAULT, ROAR_BITS_DEFAULT, 
     82                                   ROAR_CODEC_ROARDMX, ROAR_DIR_PLAY 
     83                                  )) == -1 ) 
     84  return -1; 
     85 
     86 if ( roar_vio_open_fh_socket(&vio, fh) == -1 ) { 
     87  close(fh); 
     88  return -1; 
     89 } 
     90 
     91 if ( roar_roardmx_message_send(&mes, &vio) == -1 ) { 
     92  roar_vio_close(&vio); 
     93  return -1; 
     94 } 
     95 
     96 roar_vio_close(&vio); 
    7797 
    7898 return 0; 
Note: See TracChangeset for help on using the changeset viewer.