1 #ifndef __MAMEDEF_H__
\r
2 #define __MAMEDEF_H__
\r
4 // typedefs to use MAME's (U)INTxx types (copied from MAME\src\ods\odscomm.h)
\r
6 typedef unsigned char UINT8;
\r
7 typedef signed char INT8;
\r
10 typedef unsigned short UINT16;
\r
11 typedef signed short INT16;
\r
15 typedef unsigned int UINT32;
\r
16 typedef signed int INT32;
\r
22 typedef signed __int64 INT64;
\r
23 typedef unsigned __int64 UINT64;
\r
25 __extension__ typedef unsigned long long UINT64;
\r
26 __extension__ typedef signed long long INT64;
\r
30 /* offsets and addresses are 32-bit (for now...) */
\r
31 typedef UINT32 offs_t;
\r
33 /* stream_sample_t is used to represent a single sample in a sound stream */
\r
34 typedef INT32 stream_sample_t;
\r
36 #ifdef VGM_BIG_ENDIAN
\r
37 #define BYTE_XOR_BE(x) (x)
\r
39 #define BYTE_XOR_BE(x) ((x) ^ 0x01)
\r
42 #if defined(_MSC_VER)
\r
43 //#define INLINE static __forceinline
\r
44 #define INLINE static __inline
\r
45 #elif defined(__GNUC__)
\r
46 #define INLINE static __inline__
\r
48 #define INLINE static inline
\r
50 #define M_PI 3.14159265358979323846
\r
53 #define logerror printf
\r
58 extern stream_sample_t* DUMMYBUF[];
\r
60 typedef void (*SRATE_CALLBACK)(void*, UINT32);
\r
62 #endif // __MAMEDEF_H__
\r