Changeset 73:7eb32a675a95 in roaraudio for libroaresd/esdstream.c


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.