Changeset 631:105d41577f20 in roaraudio
- Timestamp:
- 08/20/08 17:37:18 (16 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libroaresd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libroaresd/esdctl.c
r28 r631 35 35 char buf[80] = ""; 36 36 37 if ( server_info->format & ESD_BITS8 ) 37 if ( server_info->format & ESD_BITS16 ) 38 strcat(buf, "16 bit "); 39 else 38 40 strcat(buf, "8 bit "); 39 else40 strcat(buf, "16 bit ");41 41 42 42 if ( server_info->format & ESD_STEREO ) … … 54 54 char buf[80] = ""; 55 55 56 if ( player_info->format & ESD_BITS8 ) 56 if ( player_info->format & ESD_BITS16 ) 57 strcat(buf, "16 bit "); 58 else 57 59 strcat(buf, "8 bit "); 58 else59 strcat(buf, "16 bit ");60 60 61 61 if ( player_info->format & ESD_MONO ) -
libroaresd/esdstream.c
r628 r631 19 19 int codec = ROAR_CODEC_DEFAULT; 20 20 21 if ( (format & ESD_BITS8) ) { 21 if ( (format & ESD_BITS16) ) { 22 bits = 16; 23 } else { 22 24 bits = 8; 23 25 codec = CODEC_DEF_8BIT; 24 } else {25 bits = 16;26 26 } 27 27 … … 54 54 int codec = ROAR_CODEC_DEFAULT; 55 55 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 { 57 61 bits = 8; 58 62 codec = CODEC_DEF_8BIT; 59 } else {60 bits = 16;61 63 } 62 64 … … 80 82 int codec = ROAR_CODEC_DEFAULT; 81 83 82 if ( (format & ESD_BITS8) ) { 84 if ( (format & ESD_BITS16) ) { 85 bits = 16; 86 } else { 83 87 bits = 8; 84 88 codec = CODEC_DEF_8BIT; 85 } else {86 bits = 16;87 89 } 88 90
Note: See TracChangeset
for help on using the changeset viewer.