CSL 5.2

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

Macros | Typedefs
SoundFileCA.cpp File Reference
`#include "SoundFileCA.h"`

Go to the source code of this file.

## Macros
#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

## Macro Definition Documentation

#define CONVERT_16_BIT | ( |  | unsV,
|  |  | sinV,
|  |  | bigE
| ) |  |

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

Definition at line 18 of file SoundFileCA.cpp.

Referenced by csl::CASoundFile::readBufferFromFile().

#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])

Definition at line 25 of file SoundFileCA.cpp.

Referenced by csl::CASoundFile::readBufferFromFile().

## Typedef Documentation

typedef signed char int8

Definition at line 11 of file SoundFileCA.cpp.

typedef unsigned char uint8

Definition at line 12 of file SoundFileCA.cpp.

typedef signed short int16

Definition at line 13 of file SoundFileCA.cpp.

typedef unsigned short uint16

Definition at line 14 of file SoundFileCA.cpp.

typedef signed int int32

Definition at line 15 of file SoundFileCA.cpp.

typedef unsigned int uint32

Definition at line 16 of file SoundFileCA.cpp.