Changeset 1158:2a018971489b in roaraudio for libroar
- Timestamp:
- 01/23/09 22:03:26 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/simple.c
r1094 r1158 58 58 59 59 int roar_simple_stream(int rate, int channels, int bits, int codec, char * server, int dir, char * name) { 60 struct roar_stream s; 61 62 return roar_simple_stream_obj(&s, rate, channels, bits, codec, server, dir, name); 63 } 64 65 int roar_simple_stream_obj (struct roar_stream * s, int rate, int channels, int bits, int codec, char * server, int dir, char * name) { 60 66 struct roar_connection con; 61 struct roar_stream s;62 67 63 68 if ( roar_simple_connect(&con, server, name) == -1 ) { … … 67 72 } 68 73 69 if ( roar_stream_new( &s, rate, channels, bits, codec) == -1 ) {74 if ( roar_stream_new(s, rate, channels, bits, codec) == -1 ) { 70 75 roar_disconnect(&con); 71 76 return -1; 72 77 } 73 78 74 if ( roar_stream_connect(&con, &s, dir) == -1 ) {79 if ( roar_stream_connect(&con, s, dir) == -1 ) { 75 80 roar_disconnect(&con); 76 81 return -1; 77 82 } 78 83 79 if ( roar_stream_exec(&con, &s) == -1 ) {84 if ( roar_stream_exec(&con, s) == -1 ) { 80 85 roar_disconnect(&con); 81 86 return -1;
Note: See TracChangeset
for help on using the changeset viewer.