Changeset 1660:99bfd21f00ef in roaraudio for libroaresd/esdbasic.c
- Timestamp:
- 05/08/09 16:56:40 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroaresd/esdbasic.c
r705 r1660 45 45 int esd_open_sound( const char *host ) { 46 46 struct roar_connection con; 47 int fh; 47 48 48 49 if ( roar_simple_connect(&con, (char*) host, NULL) == -1 ) { … … 51 52 } 52 53 53 return con.fh; 54 if ( (fh = roar_get_connection_fh(&con)) == -1 ) { 55 roar_disconnect(&con); 56 return -1; 57 } 58 59 return fh; 54 60 } 55 61 … … 79 85 m.datalen = 0; 80 86 81 con.fh = esd;87 roar_connect_fh(&con, esd); 82 88 83 89 gettimeofday(&try, NULL);
Note: See TracChangeset
for help on using the changeset viewer.