PortAudio  2.0
Defines | Typedefs

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

Go to the source code of this file.

Defines

#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

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

Referenced by Pa_Initialize().


Typedef Documentation

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

Generated for PortAudio by  doxygen1.7.6.1