Changeset 73:7eb32a675a95 in roaraudio for libroaresd
- Timestamp:
- 07/12/08 15:34:46 (16 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libroaresd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libroaresd/esdbasic.c
r0 r73 10 10 struct roar_connection con; 11 11 12 if ( roar_simple_connect(&con, host, NULL) == -1 ) {12 if ( roar_simple_connect(&con, (char*) host, NULL) == -1 ) { 13 13 ROAR_DBG("esd_open_sound(*): roar_simple_connect() faild!"); 14 14 return -1; … … 19 19 20 20 /* send the authorization cookie, create one if needed */ 21 int esd_send_auth( int sock ); 21 int esd_send_auth( int sock ) { 22 return 0; 23 } 22 24 23 25 /* closes fd, previously obtained by esd_open */ -
libroaresd/esdstream.c
r0 r73 7 7 int esd_play_stream( esd_format_t format, int rate, 8 8 const char *host, const char *name ) { 9 10 int channels; 11 int bits; 9 int channels; 10 int bits; 12 11 13 12 if ( (format & ESD_BITS8) ) { … … 28 27 int esd_play_stream_fallback( esd_format_t format, int rate, 29 28 const char *host, const char *name ) { 30 return esd_play_stream(format, rate, host, name); // for the moment this need to be ok... 29 int r; 30 31 if ( (r = esd_play_stream(format, rate, host, name)) != -1 ) { 32 return r; 33 } 34 35 return esd_play_stream(format, rate, "+fork", name); 31 36 } 32 37 … … 35 40 int esd_monitor_stream( esd_format_t format, int rate, 36 41 const char *host, const char *name ) { 37 38 int channels; 39 int bits; 42 int channels; 43 int bits; 40 44 41 45 if ( (format & ESD_BITS8) ) { … … 60 64 int esd_filter_stream( esd_format_t format, int rate, 61 65 const char *host, const char *name ) { 62 63 int channels; 64 int bits; 66 int channels; 67 int bits; 65 68 66 69 if ( (format & ESD_BITS8) ) {
Note: See TracChangeset
for help on using the changeset viewer.