PortAudio  2.0
Macros | Typedefs

Definition of 16 and 32 bit integer types (PaInt16, PaInt32 etc) More...

Go to the source code of this file.

Macros

#define SIZEOF_SHORT   2
 
#define SIZEOF_INT   4
 
#define SIZEOF_LONG   4
 
#define PA_VALIDATE_TYPE_SIZES
 

Typedefs

typedef signed short PaInt16
 
typedef unsigned short PaUint16
 
typedef signed int PaInt32
 
typedef unsigned int PaUint32
 

Detailed Description

Definition of 16 and 32 bit integer types (PaInt16, PaInt32 etc)

SIZEOF_SHORT, SIZEOF_INT and SIZEOF_LONG are set by the configure script when it is used. Otherwise we default to the common 32 bit values, if your platform doesn't use configure, and doesn't use the default values below you will need to explicitly define these symbols in your make file.

A PA_VALIDATE_SIZES macro is provided to assert that the values set in this file are correct.

Macro Definition Documentation

#define PA_VALIDATE_TYPE_SIZES
Value:
{ \
assert( "PortAudio: type sizes are not correct in pa_types.h" && sizeof( PaUint16 ) == 2 ); \
assert( "PortAudio: type sizes are not correct in pa_types.h" && sizeof( PaInt16 ) == 2 ); \
assert( "PortAudio: type sizes are not correct in pa_types.h" && sizeof( PaUint32 ) == 4 ); \
assert( "PortAudio: type sizes are not correct in pa_types.h" && sizeof( PaInt32 ) == 4 ); \
}
unsigned int PaUint32
Definition: pa_types.h:84
signed int PaInt32
Definition: pa_types.h:83
signed short PaInt16
Definition: pa_types.h:70
unsigned short PaUint16
Definition: pa_types.h:71

Referenced by Pa_Initialize().

#define SIZEOF_INT   4
#define SIZEOF_LONG   4
#define SIZEOF_SHORT   2

Typedef Documentation

typedef signed short PaInt16
typedef signed int PaInt32
typedef unsigned short PaUint16
typedef unsigned int PaUint32