Changeset 628:a5bf996c115d in roaraudio
- Timestamp:
- 08/20/08 13:17:48 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroaresd/esdstream.c
r627 r628 2 2 3 3 #include "libroaresd.h" 4 5 #if BYTE_ORDER == BIG_ENDIAN 6 #define CODEC_DEF_8BIT ROAR_CODEC_PCM_U_BE 7 #elif BYTE_ORDER == LITTLE_ENDIAN 8 #define CODEC_DEF_8BIT ROAR_CODEC_PCM_U_LE 9 #else 10 #define CODEC_DEF_8BIT ROAR_CODEC_PCM_U_PDP 11 #endif 4 12 5 13 /* open a socket for playing, monitoring, or recording as a stream */ … … 12 20 13 21 if ( (format & ESD_BITS8) ) { 14 bits = 8; 22 bits = 8; 23 codec = CODEC_DEF_8BIT; 15 24 } else { 16 25 bits = 16; … … 46 55 47 56 if ( (format & ESD_BITS8) ) { 48 bits = 8; 57 bits = 8; 58 codec = CODEC_DEF_8BIT; 49 59 } else { 50 60 bits = 16; … … 71 81 72 82 if ( (format & ESD_BITS8) ) { 73 bits = 8; 83 bits = 8; 84 codec = CODEC_DEF_8BIT; 74 85 } else { 75 86 bits = 16;
Note: See TracChangeset
for help on using the changeset viewer.