Changeset 2224:d926d296b6fa in roaraudio
- Timestamp:
- 07/28/09 01:44:39 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roarclients/roarinterconnect.c
r2164 r2224 80 80 } 81 81 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; 85 87 } 86 88 87 89 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; 90 92 } 91 93 92 94 if ( roar_stream_new(stream, rate, channels, bits, codec) == -1 ) { 93 95 roar_disconnect(con); 94 return -1;96 return 21; 95 97 } 96 98 97 99 if ( roar_stream_connect(con, stream, ROAR_DIR_BIDIR) == -1 ) { 98 100 roar_disconnect(con); 99 return -1;101 return 22; 100 102 } 101 103 102 104 if ( roar_stream_passfh(con, stream, rfh) == -1 ) { 103 105 roar_disconnect(con); 104 return -1;106 return 23; 105 107 } 106 108 … … 108 110 109 111 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"); 111 113 } 112 114
Note: See TracChangeset
for help on using the changeset viewer.