Changeset 2224:d926d296b6fa in roaraudio


Ignore:
Timestamp:
07/28/09 01:44:39 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

done some clean up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarinterconnect.c

    r2164 r2224  
    8080 } 
    8181 
    82  if ( (rfh = roar_simple_stream(rate, channels, bits, codec, remote, ROAR_DIR_BIDIR, "roarinterconnect")) == -1 ) { 
    83   fprintf(stderr, "Error: can not start playback\n"); 
    84   return 1; 
     82 rfh = roar_simple_stream(rate, channels, bits, codec, remote, ROAR_DIR_BIDIR, "roarinterconnect"); 
     83 
     84 if ( rfh == -1 ) { 
     85  fprintf(stderr, "Error: can not connect to remote server\n"); 
     86  return 10; 
    8587 } 
    8688 
    8789 if ( roar_simple_connect(con, server, "roarinterconnect") == -1 ) { 
    88   ROAR_ERR("Can not connect to server"); 
    89   return 0; 
     90  fprintf(stderr, "Can not connect to local server\n"); 
     91  return 20; 
    9092 } 
    9193 
    9294 if ( roar_stream_new(stream, rate, channels, bits, codec) == -1 ) { 
    9395  roar_disconnect(con); 
    94   return -1; 
     96  return 21; 
    9597 } 
    9698 
    9799 if ( roar_stream_connect(con, stream, ROAR_DIR_BIDIR) == -1 ) { 
    98100  roar_disconnect(con); 
    99   return -1; 
     101  return 22; 
    100102 } 
    101103 
    102104 if ( roar_stream_passfh(con, stream, rfh) == -1 ) { 
    103105  roar_disconnect(con); 
    104   return -1; 
     106  return 23; 
    105107 } 
    106108 
     
    108110 
    109111 if ( roar_stream_attach_simple(con, stream, 0) == -1 ) { 
    110   ROAR_ERR("Can not attach stream to server"); 
     112  fprintf(stderr, "Can not attach remote stream to local server\n"); 
    111113 } 
    112114 
Note: See TracChangeset for help on using the changeset viewer.