Changeset 631:105d41577f20 in roaraudio for libroaresd/esdstream.c
- Timestamp:
- 08/20/08 17:37:18 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.