pa_types.h File Reference

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

Go to the source code of this file.

Defines

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


Define 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 ); \
    }

#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


Generated on Wed Jan 16 17:04:04 2008 for PortAudio by  doxygen 1.5.4