SoundFileCA.cpp File Reference

#include "SoundFileCA.h"

Defines

#define CONVERT_16_BIT(unsV, sinV, bigE)
#define CONVERT_24_BIT(res, ptr, bigE)

Typedefs

typedef signed char int8
typedef unsigned char uint8
typedef signed short int16
typedef unsigned short uint16
typedef signed int int32
typedef unsigned int uint32


Define Documentation

#define CONVERT_16_BIT unsV,
sinV,
bigE   ) 
 

Value:

if (bigE)                                           \
        unsV = ((unsV << 8) | (unsV >> 8));             \
    sinV = unsV & 0x7fff;                               \
    if (unsV & 0x8000)                                  \
        sinV += 0x8000

#define CONVERT_24_BIT res,
ptr,
bigE   ) 
 

Value:

if (bigE)                                           \
        res = (((int) ptr[2]) << 16)                    \
            | (((uint32) (uint8) ptr[1]) << 8)          \
            | ((uint32) (uint8) ptr[0]);                \
    else                                                \
        res = (((int) ptr[0]) << 16)                    \
            | (((uint32) (uint8) ptr[1]) << 8)          \
            | ((uint32) (uint8) ptr[2])


Typedef Documentation

typedef signed char int8
 

typedef unsigned char uint8
 

typedef signed short int16
 

typedef unsigned short uint16
 

typedef signed int int32
 

typedef unsigned int uint32
 


Generated on Sat Oct 17 14:12:33 2009 for CSL by  doxygen 1.4.5-20051010