MusicKit  0.0.0
SndKitConfig.h
00001 /* Frameworks/SndKit/SndKitConfig.h.  Generated from SndKitConfig.h.in by configure.  */
00002 /*
00003  *   $Id$
00004  *   Defined In: The MusicKit
00005  *
00006  *  Description:
00007  *    Defines for SndKit to facilitate platform specific configuration.
00008  *    This includes DLL definitions for Win32 and autoconf derived definitions.
00009  *
00010  *  Original Author: Leigh Smith <leigh@leighsmith.com>
00011  *
00012  *  Copyright (c) 2005, The MusicKit Project.  All rights reserved.
00013  *
00014  *  Permission is granted to use and modify this code for commercial and non-
00015  *  commercial purposes so long as the author attribution and this copyright
00016  *  message remains intact and accompanies all derived code.
00017  *
00018  */
00019 
00020 #ifndef _SNDKITCONFIG_H_
00021 #define _SNDKITCONFIG_H_
00022 
00023 /* autoconf generated definitions */
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 /* #undef HAVE_LIBSHOUT */
00035 
00036 #define HAVE_PORTAUDIO_H 1
00037 
00038 // These were used by Stephen to get around the byzantine Win32 linking process.
00039 // The GNU linker now (V3.4.2 at least) handles Win32 linking without import/export
00040 // declarations, so these declarations have become redundant.
00041 #define SNDKIT_API extern
00042 #define SNDKIT_DECLARE
00043 
00044 #import <objc/objc.h> /* for BOOL, YES, NO, TRUE, FALSE */
00045 
00046 //typedef char BOOL;
00047 
00048 //#ifndef TRUE
00049 //#define TRUE  1
00050 //#endif
00051 
00052 //#ifndef FALSE
00053 //#define FALSE 0
00054 //#endif
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)          /* (2*pi)/360 */
00065 #define R2D (57.29577951)            /* 360/(2*pi) */
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 // Fake NSUInteger for MacOS versions less than 10.5
00092 #if defined(__APPLE_CC__) && (!defined(MAC_OS_X_VERSION_10_5) || (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5))
00093 typedef unsigned int NSUInteger;
00094 #endif
00095 
00096 #ifdef DEBUG
00097 #define INLINE
00098 #else
00099 #define INLINE inline
00100 #endif
00101 
00102 #endif /* _SNDKITCONFIG_H_ */