Changeset 73:7eb32a675a95 in roaraudio for libroaresd


Ignore:
Timestamp:
07/12/08 15:34:46 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added some more simple things, including fallback support via +fork

Location:
libroaresd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libroaresd/esdbasic.c

    r0 r73  
    1010 struct roar_connection con; 
    1111 
    12  if ( roar_simple_connect(&con, host, NULL) == -1 ) { 
     12 if ( roar_simple_connect(&con, (char*) host, NULL) == -1 ) { 
    1313  ROAR_DBG("esd_open_sound(*): roar_simple_connect() faild!"); 
    1414  return -1; 
     
    1919 
    2020/* send the authorization cookie, create one if needed */ 
    21 int esd_send_auth( int sock ); 
     21int esd_send_auth( int sock ) { 
     22 return 0; 
     23} 
    2224 
    2325/* closes fd, previously obtained by esd_open */ 
  • libroaresd/esdstream.c

    r0 r73  
    77int esd_play_stream( esd_format_t format, int rate, 
    88                     const char *host, const char *name ) { 
    9  
    10 int channels; 
    11 int bits; 
     9 int channels; 
     10 int bits; 
    1211 
    1312 if ( (format & ESD_BITS8) ) { 
     
    2827int esd_play_stream_fallback( esd_format_t format, int rate, 
    2928                              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); 
    3136} 
    3237 
     
    3540int esd_monitor_stream( esd_format_t format, int rate, 
    3641                        const char *host, const char *name ) { 
    37  
    38 int channels; 
    39 int bits; 
     42 int channels; 
     43 int bits; 
    4044 
    4145 if ( (format & ESD_BITS8) ) { 
     
    6064int esd_filter_stream( esd_format_t format, int rate, 
    6165                       const char *host, const char *name ) { 
    62  
    63 int channels; 
    64 int bits; 
     66 int channels; 
     67 int bits; 
    6568 
    6669 if ( (format & ESD_BITS8) ) { 
Note: See TracChangeset for help on using the changeset viewer.