Changeset 119:8669a32c3bdd in roaraudio
- Timestamp:
- 07/13/08 14:54:17 (16 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroar/simple.h
r82 r119 11 11 12 12 int roar_simple_new_stream (struct roar_connection * con, int rate, int channels, int bits, int codec, int dir); 13 int roar_simple_new_stream_obj (struct roar_connection * con, struct roar_stream * s, int rate, int channels, int bits, int 14 codec, int dir); 13 15 14 16 int roar_simple_play (int rate, int channels, int bits, int codec, char * server, char * name); -
libroar/simple.c
r82 r119 60 60 int roar_simple_new_stream (struct roar_connection * con, int rate, int channels, int bits, int codec, int dir) { 61 61 struct roar_stream s; 62 return roar_simple_new_stream_obj(con, &s, rate, channels, bits, codec, dir); 63 } 64 65 int roar_simple_new_stream_obj (struct roar_connection * con, struct roar_stream * s, int rate, int channels, int bits, int codec, int dir) { 62 66 struct roar_message mes; 63 67 char file[80]; … … 71 75 } 72 76 73 if ( roar_stream_new( &s, rate, channels, bits, codec) == -1 ) {77 if ( roar_stream_new(s, rate, channels, bits, codec) == -1 ) { 74 78 return -1; 75 79 } 76 80 77 if ( roar_stream_connect(con, &s, dir) == -1 ) {81 if ( roar_stream_connect(con, s, dir) == -1 ) { 78 82 return -1; 79 83 } 80 84 81 if ( roar_stream_connect_to_ask(con, &s, ROAR_SOCKET_TYPE_UNIX, file, 0) != -1 ) {85 if ( roar_stream_connect_to_ask(con, s, ROAR_SOCKET_TYPE_UNIX, file, 0) != -1 ) { 82 86 83 87 if ( (fh = accept(listen, NULL, NULL)) != -1 ) {
Note: See TracChangeset
for help on using the changeset viewer.