Changeset 628:a5bf996c115d in roaraudio


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

use diffrent (unsigned) codec for 8 bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroaresd/esdstream.c

    r627 r628  
    22 
    33#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 
    412 
    513/* open a socket for playing, monitoring, or recording as a stream */ 
     
    1220 
    1321 if ( (format & ESD_BITS8) ) { 
    14   bits = 8; 
     22  bits  = 8; 
     23  codec = CODEC_DEF_8BIT; 
    1524 } else { 
    1625  bits = 16; 
     
    4655 
    4756 if ( (format & ESD_BITS8) ) { 
    48   bits = 8; 
     57  bits  = 8; 
     58  codec = CODEC_DEF_8BIT; 
    4959 } else { 
    5060  bits = 16; 
     
    7181 
    7282 if ( (format & ESD_BITS8) ) { 
    73   bits = 8; 
     83  bits  = 8; 
     84  codec = CODEC_DEF_8BIT; 
    7485 } else { 
    7586  bits = 16; 
Note: See TracChangeset for help on using the changeset viewer.