In the OpenMaxAL.h file for the XAAudioInputDescriptor, the elements deviceConnection , deviceScope and deviceLocation are shown as XAint16 whereas macros declared above it like XA_DEVCONNECTION_INTEGRATED etc are cast to XAunit16.