#ifndef VS2005_CONFIG_HEADER
#define VS2005_CONFIG_HEADER

/* Define if building universal (internal helper macro) */
/* #undef AC_APPLE_UNIVERSAL_BUILD */

/* Define `double' audio data type. */
/* #undef DATA_T_DOUBLE */

/* Define `float' audio data type. */
/* #undef DATA_T_FLOAT */

/* Define `int32' audio data type. */
/* #undef DATA_T_INT32 */

/* Define to 1 if you are in debug mode */
/* #undef DEBUG */

/* place to install patches */
#define DEFAULT_PATH ".\\"

/* Define resampler. */
/* #undef DEFAULT_RESAMPLATION */

/* Define resampler filter. */
/* #undef DEFAULT_RESAMPLATION_FILTER */

/* Define resampler num. */
/* #undef DEFAULT_RESAMPLATION_NUM */

/* Define resampler order. */
/* #undef DEFAULT_RESAMPLATION_ORDER */

/* Define to 1 if you have to add "_" to every identifiers. */
/* #undef DLSYM_NEEDS_UNDERSCORE */

/* Define to 1 if you enable Sherry WRD */
#define ENABLE_SHERRY 1

/* Define to 1 if you need thread support */
#define ENABLE_THREAD 1

/* Define to 1 if you have the `alarm' function. */
/* #undef HAVE_ALARM */

/* Define to 1 if you have the <alsa/asoundlib.h> header file. */
/* #undef HAVE_ALSA_ASOUNDLIB_H */

/* Define to 1 if you have the <arpa/inet.h> header file. */
/* #undef HAVE_ARPA_INET_H */

/* Define if you have ARTS sound server */
/* #undef HAVE_ARTS */

/* Define to 1 if you have the <curses.h> header file. */
#define HAVE_CURSES_H 1

/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
   */
/* #undef HAVE_DIRENT_H */

/* Define to 1 if you have the <dlfcn.h> header file. */
/* #undef HAVE_DLFCN_H */

/* Define to 1 if you have the `dlopen' function. */
/* #undef HAVE_DLOPEN */

/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
/* #undef HAVE_DOPRNT */

/* Define to 1 if you have the `dup2' function. */
/* #undef HAVE_DUP2 */

/* Define to 1 if you have the <errno.h> header file. */
#define HAVE_ERRNO_H 1

/* Define to 1 if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1

/* Define to 1 if you have the `floor' function. */
#define HAVE_FLOOR 1

/* Define to 1 if you have the `fork' function. */
/* #undef HAVE_FORK */

/* Define to 1 if you have the `fseeko' function. */
/* #undef HAVE_FSEEKO */

/* Define to 1 if you have the `ftello' function. */
/* #undef HAVE_FTELLO */

/* Define to 1 if you have the `getcwd' function. */
#define HAVE_GETCWD 1

/* Define to 1 if you have the `gethostbyname' function. */
#define HAVE_GETHOSTBYNAME 1

/* Define to 1 if you have the `getopt' function. */
/* #undef HAVE_GETOPT */

/* Define to 1 if you have the <getopt.h> header file. */
/* #undef HAVE_GETOPT_H */

/* Define to 1 if you have `getopt_long' function */
/* #undef HAVE_GETOPT_LONG */

/* Define to 1 if you have the `getpagesize' function. */
/* #undef HAVE_GETPAGESIZE */

/* Define to 1 if you have the `gettimeofday' function. */
/* #undef HAVE_GETTIMEOFDAY */

/* Define to 1 if you have the `getwd' function. */
/* #undef HAVE_GETWD */

/* Define to 1 if you have the <glob.h> header file. */
/* #undef HAVE_GLOB_H */

/* Define to 1 if you have GTK+ 2.x */
/* #undef HAVE_GTK_2 */

/* Define to 1 if you have the <inttypes.h> header file. */
/* #undef HAVE_INTTYPES_H */

/* Define to 1 if you have the `isatty' function. */
#define HAVE_ISATTY 1

/* Define to 1 if you have the `asound' library (-lasound). */
/* #undef HAVE_LIBASOUND */

/* Define to 1 if you have the `ICE' library (-lICE). */
/* #undef HAVE_LIBICE */

/* Define to 1 if you have the `m' library (-lm). */
/* #undef HAVE_LIBM */

/* Define to 1 if you have the `nsl' library (-lnsl). */
/* #undef HAVE_LIBNSL */

/* Define to 1 if you have the `ossaudio' library (-lossaudio). */
/* #undef HAVE_LIBOSSAUDIO */

/* Define to 1 if you have the `socket' library (-lsocket). */
/* #undef HAVE_LIBSOCKET */

/* Define to 1 if you have the `X11' library (-lX11). */
/* #undef HAVE_LIBX11 */

/* Define to 1 if you have the 'Xft' library. */
/* #undef HAVE_LIBXFT */

/* Define to 1 if you have the `xpg4' library (-lxpg4). */
/* #undef HAVE_LIBXPG4 */

/* Define to 1 if you have the `Xpm' library (-lXpm). */
/* #undef HAVE_LIBXPM */

/* Define to 1 if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1

/* Define to 1 if you have the <machine/endian.h> header file. */
/* #undef HAVE_MACHINE_ENDIAN_H */

/* Define to 1 if you have the <malloc.h> header file. */
#define HAVE_MALLOC_H 1

/* Define to 1 if you have the `memchr' function. */
#define HAVE_MEMCHR 1

/* Define to 1 if you have the `memmove' function. */
#define HAVE_MEMMOVE 1

/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1

/* Define to 1 if you have the `memset' function. */
#define HAVE_MEMSET 1

/* Define to 1 if you have the `mkstemp' function. */
/* #undef HAVE_MKSTEMP */

/* Define to 1 if you have a working `mmap' system call. */
/* #undef HAVE_MMAP */

/* Define to 1 if you have the `modf' function. */
#define HAVE_MODF 1

/* Define to 1 if you have the `munmap' function. */
/* #undef HAVE_MUNMAP */

/* Define to 1 if you have the <ncurses/curses.h> header file. */
/* #undef HAVE_NCURSES_CURSES_H */

/* Define to 1 if you have the <ncurses.h> header file. */
/* #undef HAVE_NCURSES_H */

/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
/* #undef HAVE_NDIR_H */

/* Define to 1 if you have the <netdb.h> header file. */
/* #undef HAVE_NETDB_H */

/* Define to 1 if you have the <netinet/in.h> header file. */
/* #undef HAVE_NETINET_IN_H */

/* Define to 1 if you have <mmsystem.h> file */
#define HAVE_NEW_MMSYSTEM 1

/* Define to 1 if you have the <nlist.h> header file. */
/* #undef HAVE_NLIST_H */

/* Define to 1 if you have `open_memstream' function */
/* #undef HAVE_OPEN_MEMSTREAM */

/* Define to 1 if you have the `popen' function. */
#define HAVE_POPEN 1

/* Define to 1 if you have the `pow' function. */
#define HAVE_POW 1

/* Define to 1 if you have the <pthreads.h> header file. */
/* #undef HAVE_PTHREADS_H */

/* Define to 1 if you have the `pthread_create' function. */
/* #undef HAVE_PTHREAD_CREATE */

/* Define to 1 if you have the <pthread.h> header file. */
/* #undef HAVE_PTHREAD_H */

/* Define to 1 if you have the `select' function. */
#define HAVE_SELECT 1

/* Define to 1 if you have the `signal' function. */
#define HAVE_SIGNAL 1

/* Define to 1 if you have the <slang.h> header file. */
/* #undef HAVE_SLANG_H */

/* Define to 1 if you have the <slang/slang.h> header file. */
/* #undef HAVE_SLANG_SLANG_H */

/* Define to 1 if you have the `sleep' function. */
/* #undef HAVE_SLEEP */

/* Define to 1 if you have the `snd_seq_port_info_set_timestamping' function.
   */
/* #undef HAVE_SND_SEQ_PORT_INFO_SET_TIMESTAMPING */

/* Define to 1 if you have the `snprintf' function. */
#define HAVE_SNPRINTF 1

/* Define to 1 if you have the `socket' function. */
#define HAVE_SOCKET 1

/* Define to 1 if you have the <soundcard.h> header file. */
/* #undef HAVE_SOUNDCARD_H */

/* Define to 1 if you have the `sqrt' function. */
#define HAVE_SQRT 1

/* Define to 1 if the system has the type `ssize_t'. */
/* #undef HAVE_SSIZE_T */

/* Define to 1 if you have the <stddef.h> header file. */
#define HAVE_STDDEF_H 1

/* Define to 1 if you have the <stdint.h> header file. */
/* #undef HAVE_STDINT_H */

/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1

/* Define to 1 if you have the `strcasecmp' function. */
#define HAVE_STRCASECMP 1

/* Define to 1 if you have the `strchr' function. */
#define HAVE_STRCHR 1

/* Define to 1 if you have the `strdup' function. */
#define HAVE_STRDUP 1

/* Define to 1 if you have the `strerror' function. */
#define HAVE_STRERROR 1

/* Define to 1 if cpp supports the ANSI # stringizing operator. */
#define HAVE_STRINGIZE 1

/* Define to 1 if you have the <strings.h> header file. */
/* #undef HAVE_STRINGS_H */

/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1

/* Define to 1 if you have the `strlcat' function. */
/* #undef HAVE_STRLCAT */

/* Define to 1 if you have the `strlcpy' function. */
/* #undef HAVE_STRLCPY */

/* Define to 1 if you have the `strncasecmp' function. */
#define HAVE_STRNCASECMP 1

/* Define to 1 if you have the <stropts.h> header file. */
/* #undef HAVE_STROPTS_H */

/* Define to 1 if you have the `strrchr' function. */
#define HAVE_STRRCHR 1

/* Define to 1 if you have the `strstr' function. */
#define HAVE_STRSTR 1

/* Define to 1 if you have the `strtol' function. */
#define HAVE_STRTOL 1

/* Define to 1 if you have the <sys/asoundlib.h> header file. */
/* #undef HAVE_SYS_ASOUNDLIB_H */

/* Define to 1 if you have the <sys/audioio.h> header file. */
/* #undef HAVE_SYS_AUDIOIO_H */

/* Define to 1 if you have the <sys/awe_voice.h> header file. */
/* #undef HAVE_SYS_AWE_VOICE_H */

/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
   */
/* #undef HAVE_SYS_DIR_H */

/* Define to 1 if you have the <sys/ioctl.h> header file. */
/* #undef HAVE_SYS_IOCTL_H */

/* Define to 1 if you have the <sys/ipc.h> header file. */
/* #undef HAVE_SYS_IPC_H */

/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
   */
/* #undef HAVE_SYS_NDIR_H */

/* Define to 1 if you have the <sys/param.h> header file. */
/* #undef HAVE_SYS_PARAM_H */

/* Define to 1 if you have the <sys/shm.h> header file. */
/* #undef HAVE_SYS_SHM_H */

/* Define to 1 if you have the <sys/socket.h> header file. */
/* #undef HAVE_SYS_SOCKET_H */

/* Define to 1 if you have the <sys/soundcard.h> header file. */
/* #undef HAVE_SYS_SOUNDCARD_H */

/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1

/* Define to 1 if you have the <sys/sysctl.h> header file. */
/* #undef HAVE_SYS_SYSCTL_H */

/* Define to 1 if you have the <sys/time.h> header file. */
/* #undef HAVE_SYS_TIME_H */

/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1

/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
/* #undef HAVE_SYS_WAIT_H */

/* Define to 1 if you have the <termios.h> header file. */
/* #undef HAVE_TERMIOS_H */

/* Define to 1 if you use semun keyword */
/* #undef HAVE_UNION_SEMUN */

/* Define to 1 if you have the <unistd.h> header file. */
/* #undef HAVE_UNISTD_H */

/* Define to 1 if you have the `usleep' function. */
/* #undef HAVE_USLEEP */

/* Define to 1 if you have the `vfork' function. */
/* #undef HAVE_VFORK */

/* Define to 1 if you have the <vfork.h> header file. */
/* #undef HAVE_VFORK_H */

/* Define to 1 if you have the `vprintf' function. */
#define HAVE_VPRINTF 1

/* Define to 1 if you have the `vsnprintf' function. */
#define HAVE_VSNPRINTF 1

/* Define to 1 if you have the `vwprintw' function. */
/* #undef HAVE_VWPRINTW */

/* Define to 1 if `fork' works. */
/* #undef HAVE_WORKING_FORK */

/* Define to 1 if `vfork' works. */
/* #undef HAVE_WORKING_VFORK */

/* Define to 1 if you have the <X11/extensions/XShm.h> header file. */
/* #undef HAVE_X11_EXTENSIONS_XSHM_H */

/* Define to 1 if you have the <X11/Xlib.h> header file. */
/* #undef HAVE_X11_XLIB_H */

/* Define to 1 if you have the <X11/Xmu/ExtAgent.h> header file. */
/* #undef HAVE_X11_XMU_EXTAGENT_H */

/* Define to 1 if you have the <X11/Xaw3d/Tip.h> header file. */
/* #undef HAVE_XAW3D_TIP */

/* Define to 1 if you have the `XmuRegisterExternalAgent' function. */
/* #undef HAVE_XMUREGISTEREXTERNALAGENT */

/* Define to 1 if you have the `XShmCreatePixmap' function. */
/* #undef HAVE_XSHMCREATEPIXMAP */

/* Define to 1 if you are NOT in debug mode */
/* #undef NDEBUG */

/* Define to 1 if you use libneXtaw. */
/* #undef NEXTAW */

/* Define to 1 if you do not have <string.h>. */
/* #undef NO_STRING_H */

/* Define to 1 if you cannot use volatile keyword */
/* #undef NO_VOLATILE */

/* Define to 1 if you need offix support */
/* #undef OFFIX */

/* oss device name */
/* #undef OSS_DEVICE */

/* Name of package */
#define PACKAGE "TiMidity++"

/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "timidity-talk@lists.sourceforge.net"

/* Define to the full name of this package. */
#define PACKAGE_NAME "TiMidity++"

/* Define to the full name and version of this package. */
/* #undef PACKAGE_STRING */

/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "TiMidity++"

/* Define to the home page for this package. */
#define PACKAGE_URL ""

/* Define to the version of this package. */
/* #undef PACKAGE_VERSION */

/* a compatibility matter. ignore it. */
#define PKGDATADIR DEFAULT_PATH

/* place to install modules */
#define PKGLIBDIR "."

/* Define to 1 if the C compiler supports function prototypes. */
#define PROTOTYPES 1

/* Define as the return type of signal handlers (`int' or `void'). */
#define RETSIGTYPE void

/* shared library extention */
/* #undef SHARED_LIB_EXT */

/* Define to 1 if you have the ANSI C header files. */
/* #undef STDC_HEADERS */

/* Define to 1 if you need network support */
#define SUPPORT_SOCKET 1

/* Define to 1 if you need spectrogram vewer. */
#define SUPPORT_SOUNDSPEC 1

/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
/* #undef TIME_WITH_SYS_TIME */

/* the output specification */
#define TIMIDITY_OUTPUT_ID "d"

/* for windows gui */
/* #undef TIMID_VERSION */

/* Define to 1 if your <sys/time.h> declares `struct tm'. */
#define TM_IN_SYS_TIME 1

/* Define to 1 if you use altivec */
/* #undef USE_ALTIVEC */

/* Define to 1 if you use PDcurses */
#define USE_PDCURSES 1

/* A 'va_copy' style function */
/* #undef VA_COPY */

/* 'va_lists' cannot be copies as values */
/* #undef VA_COPY_AS_ARRAY */

/* Version number of package */
/* #undef VERSION */

/* Define version information prefix. */
#undef VERSION_DATA_T

/* Define to 1 if you need spectrogram viewer. */
#define W32SOUNDSPEC 1

/* Define to 1 if you cpmpile windos driver. */
/* #undef WINDRV */

/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
   significant byte first (like Motorola and SPARC, unlike Intel). */
/* #undef WORDS_BIGENDIAN */

/* Define to 1 if you need wrd support for X. */
/* #undef WRDT_X */

/* Define to 1 if you use libXaw3d. */
/* #undef XAW3D */

/* Define to 1 if you use libXawPlus. */
/* #undef XAWPLUS */

/* Define to 1 if you want xdnd support. */
/* #undef XDND */

/* Define to 1 if the X Window System is missing or not being used. */
#define X_DISPLAY_MISSING 1

/* Get 64-bit file size support */
/* #undef _FILE_OFFSET_BITS */

/* Define for ftello and fseeko extension. */
/* #undef _LARGEFILE_SOURCE */

/* Define to 1 if type `char' is unsigned and you are not using gcc.  */
#ifndef __CHAR_UNSIGNED__
/* # undef __CHAR_UNSIGNED__ */
#endif

/* Define like PROTOTYPES; this can be used by system headers. */
#define __PROTOTYPES 1

/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */

/* Define to `__inline__' or `__inline' if that's what the C compiler
   calls it, or to nothing if 'inline' is not supported under any name.  */
#define inline __inline

/* Define to `long int' if <sys/types.h> does not define. */
/* #undef off_t */

/* for VC */
#define pclose _pclose

/* Define to `int' if <sys/types.h> does not define. */
/* #undef pid_t */

/* for VC */
#define popen _popen

/* Define to `unsigned int' if <sys/types.h> does not define. */
/* #undef size_t */

/* for VC */
#define snprintf _snprintf

/* Define to `int' if <sys/types.h> does not define. */
#define ssize_t long

/* Define as `fork' if `vfork' does not work. */
/* #undef vfork */

/* Define to empty if the keyword `volatile' does not work. Warning: valid
   code using `volatile' can become incorrect without. Disable with care. */
/* #undef volatile */



#ifndef RC_INVOKED
/* Shift-JIS (MBCS) */

#ifdef NDEBUG
#pragma inline_recursion(on) // インライン展開有効
#pragma inline_depth(64)
#endif

#pragma warning(disable:4996) // 安全ではない関数の使用
#pragma warning(disable:4819) // 文字コード
#pragma warning(disable:4101) // 一度も使用していない変数
#pragma warning(disable:4018) // signed unsigned の比較
//#pragma warning(disable:4013) // int型の外部関数とみなす

#ifdef NDEBUG
#pragma warning(disable:4133) // 互換性がない呼び出し
#endif

//#pragma warning(disable:4554) // シフト演算子の優先順位

#ifdef _DEBUG
//#pragma warning(disable:4005) // 再定義
//#pragma warning(disable:4244) // 型変換
#pragma warning(disable:4068) // 不明なプラグマ
#endif

#endif



/* #define FLOAT64_BUFFER 1 */
#if !defined(DATA_T_INT32) && !defined(DATA_T_FLOAT) && !defined(DATA_T_DOUBLE)
#define DATA_T_INT32 1
/* #define DATA_T_FLOAT 1 */
/* #define DATA_T_DOUBLE 1 */
#endif

#ifdef DATA_T_INT32
#undef SUPPORT_SOUNDSPEC
#undef W32SOUNDSPEC
#else
#ifndef W32SOUNDSPEC
#define W32SOUNDSPEC
#endif
#endif

#if 0 //defined(DATA_T_FLOAT) || defined(DATA_T_DOUBLE)
#define EFFECT_LEVEL_FLOAT 1
#endif

#if defined(_M_AMD64)
#define OPT_MODE 0
#elif defined(_M_IX86)
#define OPT_MODE 1
#endif

#define CONFIG_FILE DEFAULT_PATH "timidity.cfg"
#define AU_W32 1
#define AU_NPIPE 1
#define AU_VORBIS 1
#define AU_VORBIS_DLL 1
#define AU_GOGO 1
#define AU_GOGO_DLL 1
#define AU_LAME 1
#define AU_FLAC 1
#define AU_FLAC_DLL 1
#define AU_OGGFLAC 1
/* #define AU_OGGFLAC_DLL 1 */
#define AU_OPUS 1
#define AU_OPUS_DLL 1
#define AU_SPEEX 1
/* #define AU_AO 1 */
#define AU_PORTAUDIO 1
#define AU_PORTAUDIO_DLL 1
#define AU_BENCHMARK 1
#define PORTAUDIO_V19 1
#define VST_LOADER_ENABLE 1
#define VSTWRAP_EXT 1
#define SMFCONV 1
#define WINSOCK 1
#define __W32READDIR__ 1
#define ANOTHER_MAIN 1
#define FLAC__NO_DLL 1

#undef WINVER
#define WINVER 0x0600

#ifndef _WIN32_IE
#define _WIN32_IE 0x0400
#endif

#ifndef _WIN32_WINNT
#define _WIN32_WINNT WINVER
#endif

/* Windows 2000 or later */
/* #if WINVER >= 0x0500
#define HAVE_GETADDRINFO 1
#endif */

#ifndef NDEBUG
#define TIMIDITY_LEAK_CHECK 1
#endif

#include <winsock2.h>
/* #include <Ws2tcpip.h> */
/* #include <Wspiapi.h> */
#include <windows.h>

#include <time.h>
#include <io.h>
#include <direct.h>

#ifdef TIMIDITY_LEAK_CHECK
#define _CRTDBG_MAP_ALLOC 1
#include <crtdbg.h>
#ifdef __cplusplus
#define new new(_NORMAL_BLOCK, __FILE__, __LINE__)
#endif
#define CRTDEBUGFLAGS (_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF)
#else
#define CRTDEBUGFLAGS (0)
#endif

#define STDIN_FILENO 0
#define STDOUT_FILENO 1
#define STDERR_FILENO 2

#ifndef strncasecmp
#define strncasecmp _strnicmp
#endif
#ifndef strcasecmp
#define strcasecmp _stricmp
#endif
#define vsnprintf _vsnprintf
#define open _open
#define close _close
#define write _write
#define unlink _unlink
#define fchdir(fd) (0)



/*
  for Visual Studio Project Option 
  LIB: mmsystem.lib comdlg32.lib
  MACRO: _MT, _WINDOWS
  Multithread library
  */

#define NAME_MAX (MAX_PATH)
#define NLS "\r\n"

/* Win32GUI Synthesizer */
#ifdef TWSYNG32
#define DEFAULT_VOICES               64 /* 64 voices */
#define DEFAULT_AUDIO_BUFFER_BITS     9 /* 512sample 11ms (44.1kHz) */
#define DEFAULT_AUDIO_BUFFER_NUM     13 /* 150ms over */
#define DEFAULT_COMPUTE_BUFFER_BITS   8 /* ratio 5ms (44.1kHz) */
#define TWSYNG32INI 1 // use twsyng32.ini or timpp32g.ini ??
/* #undef AU_NPIPE */
#undef AU_VORBIS
#undef AU_VORBIS_DLL
#undef AU_GOGO
#undef AU_GOGO_DLL
/* #undef AU_PORTAUDIO */
/* #undef AU_PORTAUDIO_DLL */
#undef AU_LAME
/* #undef AU_FLAC */
/* #undef AU_FLAC_DLL */
/* #undef AU_OGGFLAC */
/* #undef AU_OGGFLAC_DLL */
/* #undef AU_OPUS */
/* #undef AU_OPUS_DLL */
#undef AU_SPEEX
/* #undef AU_AO */
#undef AU_WRITE_MIDI
/* #undef AU_LIST */
#undef AU_MODMIDI
#undef AU_VOLUME_CALC
#undef AU_BENCHMARK
/* #undef VST_LOADER_ENABLE */
/* #undef VSTWRAP_EXT */
#undef SMFCONV
#undef SUPPORT_SOCKET
/* #undef SUPPORT_SOUNDSPEC */
/* #undef W32SOUNDSPEC */
#endif

/* Win32 Synthesizer Service */
#ifdef TWSYNSRV
#define DEFAULT_VOICES               64 /* 64 voices */
#define DEFAULT_AUDIO_BUFFER_BITS     9 /* 512sample 11ms (44.1kHz) */
#define DEFAULT_AUDIO_BUFFER_NUM     13 /* 150ms over */
#define DEFAULT_COMPUTE_BUFFER_BITS   8 /* ratio 5ms (44.1kHz) */
#define TWSYNG32INI 1 // use twsyng32.ini or timpp32g.ini ??
/* #undef AU_NPIPE */
#undef AU_VORBIS
#undef AU_VORBIS_DLL
#undef AU_GOGO
#undef AU_GOGO_DLL
/* #undef AU_PORTAUDIO */
/* #undef AU_PORTAUDIO_DLL */
#undef AU_LAME
#undef AU_FLAC
#undef AU_FLAC_DLL
#undef AU_OGGFLAC
#undef AU_OGGFLAC_DLL
#undef AU_OPUS
#undef AU_OPUS_DLL
#undef AU_SPEEX
/* #undef AU_AO */
#undef AU_WRITE_MIDI
#undef AU_LIST
#undef AU_MODMIDI
#undef AU_VOLUME_CALC
#undef AU_BENCHMARK
/* #undef VST_LOADER_ENABLE */
/* #undef VSTWRAP_EXT */
#undef SMFCONV
#undef SUPPORT_SOCKET
#undef SUPPORT_SOUNDSPEC
#undef W32SOUNDSPEC
#undef __W32G__	/* for Win32 GUI */
#endif

/* Win32 Driver */
#ifdef WINDRV
#define TWSYNG32 1
#define TWSYNSRV 1
#define DEFAULT_VOICES               64 /* 64 voices */
#define DEFAULT_AUDIO_BUFFER_BITS     9 /* 512sample 11ms (44.1kHz) */
#define DEFAULT_AUDIO_BUFFER_NUM     13 /* 150ms over */
#define DEFAULT_COMPUTE_BUFFER_BITS   8 /* ratio 5ms (44.1kHz) */
#define TIMDRVINI 1 // use timdrv.ini or twsyng32.ini or timpp32g.ini ??
#undef AU_NPIPE
#undef AU_VORBIS
#undef AU_VORBIS_DLL
#undef AU_GOGO
#undef AU_GOGO_DLL
/* #undef AU_PORTAUDIO */
/* #undef AU_PORTAUDIO_DLL */
#undef AU_LAME
#undef AU_FLAC
#undef AU_FLAC_DLL
#undef AU_OGGFLAC
#undef AU_OGGFLAC_DLL
#undef AU_OPUS
#undef AU_OPUS_DLL
#undef AU_SPEEX
#undef AU_AO
#undef AU_WRITE_MIDI
#undef AU_LIST
#undef AU_MODMIDI
#undef AU_VOLUME_CALC
#undef AU_BENCHMARK
#undef VST_LOADER_ENABLE
#undef VSTWRAP_EXT
#undef SMFCONV
#undef SUPPORT_SOCKET
#undef SUPPORT_SOUNDSPEC
#undef W32SOUNDSPEC
#undef __W32G__	/* for Win32 GUI */
#endif

/* Win32GUI Standalone */
#if defined(__W32G__) && !TWSYNG32 && !KBTIM
#define DEFAULT_AUDIO_BUFFER_BITS    12 /* 4096sample 92ms (44.1kHz) */
#define DEFAULT_AUDIO_BUFFER_NUM     17 /* 1500ms over */
/* #undef AU_NPIPE */
#undef AU_WRITE_MIDI
/* #undef AU_LIST */
#undef AU_MODMIDI
#define FORCE_TIME_PERIOD 1
#endif

/* Win32 Console */
#if defined(__W32__) && !defined(__W32G__) && !TWSYNSRV
#define TIM_CUI 1
#define DEFAULT_AUDIO_BUFFER_BITS    9 /* 512sample 11ms (44.1kHz) */
#define DEFAULT_AUDIO_BUFFER_NUM     65 /* 750ms over */
#define AU_VOLUME_CALC 1
#undef ANOTHER_MAIN
#undef AU_WRITE_MIDI
/* #undef AU_LIST */
/* #undef AU_MODMIDI */
#undef IA_W32G_SYN	/* for Win32 GUI */
#define FORCE_TIME_PERIOD 1
#endif

/* Windows x64 */
#if defined(WIN64) || defined(_WIN64)
#ifndef _AMD64_
#define _AMD64_ 1
#endif

/* #undef AU_NPIPE */
/* #undef AU_VORBIS */
/* #undef AU_VORBIS_DLL */
#undef AU_GOGO
#undef AU_GOGO_DLL
/* #undef AU_PORTAUDIO */
/* #undef AU_PORTAUDIO_DLL */
#undef AU_LAME
/* #undef AU_FLAC */
/* #undef AU_FLAC_DLL */
/* #undef AU_OGGFLAC */
/* #undef AU_OGGFLAC_DLL */
#undef AU_OPUS
#undef AU_OPUS_DLL
#undef AU_SPEEX
#undef AU_AO
#undef VST_LOADER_ENABLE
#undef VSTWRAP_EXT
#undef SMFCONV
#endif

/* cfgforsf */
#ifdef CFG_FOR_SF
#undef AU_NPIPE
#undef AU_VORBIS
#undef AU_VORBIS_DLL
#undef AU_GOGO
#undef AU_GOGO_DLL
#undef AU_PORTAUDIO
#undef AU_PORTAUDIO_DLL
#undef AU_LAME
#undef AU_FLAC
#undef AU_FLAC_DLL
#undef AU_OGGFLAC
#undef AU_OGGFLAC_DLL
#undef AU_OPUS
#undef AU_OPUS_DLL
#undef AU_SPEEX
#undef AU_AO
#undef AU_WRITE_MIDI
#undef AU_LIST
#undef AU_MODMIDI
#undef AU_VOLUME_CALC
#undef AU_BENCHMARK
#undef VST_LOADER_ENABLE
#undef VSTWRAP_EXT
#undef SMFCONV
#undef SUPPORT_SOCKET
#undef SUPPORT_SOUNDSPEC
#undef W32SOUNDSPEC
#undef __W32G__
#undef HAVE_POPEN
#endif

/* KbTim and in_timidity */
#ifdef KBTIM /*added by Kobarin*/
#include "kbtim/kbtim_config.h"
#define KBTIM32 1

#undef AU_NPIPE
#undef AU_VORBIS
#undef AU_VORBIS_DLL
#undef AU_GOGO
#undef AU_GOGO_DLL
#undef AU_PORTAUDIO
#undef AU_PORTAUDIO_DLL
#undef AU_LAME
#undef AU_FLAC
#undef AU_FLAC_DLL
#undef AU_OGGFLAC
#undef AU_OGGFLAC_DLL
#undef AU_OPUS
#undef AU_OPUS_DLL
#undef AU_SPEEX
#undef AU_AO
#undef AU_VOLUME_CALC
#undef AU_BENCHMARK
#undef VST_LOADER_ENABLE
#undef VSTWRAP_EXT
#ifndef IN_TIMIDITY
#undef SMFCONV
#endif
#undef SUPPORT_SOCKET
#undef SUPPORT_SOUNDSPEC
#undef W32SOUNDSPEC
#undef HAVE_POPEN
#endif

#endif /* !VS2005_CONFIG_HEADER */

