Changeset 631:105d41577f20 in roaraudio


Ignore:
Timestamp:
08/20/08 17:37:18 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

don't test for ESD_BITS8 as it is zero :), test for ESD_BITS16

Location:
libroaresd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libroaresd/esdctl.c

    r28 r631  
    3535 char buf[80] = ""; 
    3636 
    37  if ( server_info->format & ESD_BITS8 ) 
     37 if ( server_info->format & ESD_BITS16 ) 
     38  strcat(buf, "16 bit "); 
     39 else 
    3840  strcat(buf, "8 bit "); 
    39  else 
    40   strcat(buf, "16 bit "); 
    4141 
    4242 if ( server_info->format & ESD_STEREO ) 
     
    5454 char buf[80] = ""; 
    5555 
    56  if ( player_info->format & ESD_BITS8 ) 
     56 if ( player_info->format & ESD_BITS16 ) 
     57  strcat(buf, "16 bit "); 
     58 else 
    5759  strcat(buf, "8 bit "); 
    58  else 
    59   strcat(buf, "16 bit "); 
    6060 
    6161 if ( player_info->format & ESD_MONO ) 
  • libroaresd/esdstream.c

    r628 r631  
    1919 int codec = ROAR_CODEC_DEFAULT; 
    2020 
    21  if ( (format & ESD_BITS8) ) { 
     21 if ( (format & ESD_BITS16) ) { 
     22  bits  = 16; 
     23 } else { 
    2224  bits  = 8; 
    2325  codec = CODEC_DEF_8BIT; 
    24  } else { 
    25   bits = 16; 
    2626 } 
    2727 
     
    5454 int codec = ROAR_CODEC_DEFAULT; 
    5555 
    56  if ( (format & ESD_BITS8) ) { 
     56 ROAR_DBG("esd_monitor_stream(format=%x, rate=%i, host='%s', name='%s') = ?", format, rate, host, name); 
     57 
     58 if ( (format & ESD_BITS16) ) { 
     59  bits  = 16; 
     60 } else { 
    5761  bits  = 8; 
    5862  codec = CODEC_DEF_8BIT; 
    59  } else { 
    60   bits = 16; 
    6163 } 
    6264 
     
    8082 int codec = ROAR_CODEC_DEFAULT; 
    8183 
    82  if ( (format & ESD_BITS8) ) { 
     84 if ( (format & ESD_BITS16) ) { 
     85  bits  = 16; 
     86 } else { 
    8387  bits  = 8; 
    8488  codec = CODEC_DEF_8BIT; 
    85  } else { 
    86   bits = 16; 
    8789 } 
    8890 
Note: See TracChangeset for help on using the changeset viewer.