00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _SNDKITCONFIG_H_
00021 #define _SNDKITCONFIG_H_
00022
00023
00024 #define HAVE_LIBOGG 1
00025
00026 #define HAVE_LIBVORBIS 1
00027
00028 #define HAVE_LIBSNDFILE 1
00029
00030 #define HAVE_LIBMP3HIP 1
00031
00032 #define HAVE_LIBMP3LAME 1
00033
00034
00035
00036
00037
00038
00039
00040
00041 #define SNDKIT_API extern
00042 #define SNDKIT_DECLARE
00043
00044 #import <objc/objc.h>
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056 #ifndef PI
00057 #define PI (3.14159265358979232846)
00058 #endif
00059
00060 #ifndef PI2
00061 #define PI2 (6.28318530717958465692)
00062 #endif
00063
00064 #define D2R (0.01745329348)
00065 #define R2D (57.29577951)
00066
00067 #ifndef MAX
00068 #define MAX(x,y) ((x)>(y) ?(x):(y))
00069 #endif
00070
00071 #ifndef MIN
00072 #define MIN(x,y) ((x)<(y) ?(x):(y))
00073 #endif
00074
00075 #ifndef ABS
00076 #define ABS(x) ((x)<0 ?(-(x)):(x))
00077 #endif
00078
00079 #ifndef SGN
00080 #define SGN(x) ((x)<0 ?(-1):((x)==0?(0):(1)))
00081 #endif
00082
00083 typedef short SND_HWORD;
00084 typedef unsigned short SND_UHWORD;
00085 typedef int SND_WORD;
00086 typedef unsigned int SND_UWORD;
00087
00088 #define MAX_HWORD (32767)
00089 #define MIN_HWORD (-32768)
00090
00091 #ifdef DEBUG
00092 #define INLINE
00093 #else
00094 #define INLINE inline
00095 #endif
00096
00097 #endif