Changeset 631:105d41577f20 in roaraudio for libroaresd/esdctl.c


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

File:
1 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 ) 
Note: See TracChangeset for help on using the changeset viewer.