OSDN Git Service

[playmidi] Fix buffer overflow when more than 32 voices get selected
[timidity41/timidity41.git] / vc2005 / config.h
1 #ifndef VS2005_CONFIG_HEADER
2 #define VS2005_CONFIG_HEADER
3
4 /* Define if building universal (internal helper macro) */
5 /* #undef AC_APPLE_UNIVERSAL_BUILD */
6
7 /* Define `double' audio data type. */
8 /* #undef DATA_T_DOUBLE */
9
10 /* Define `float' audio data type. */
11 /* #undef DATA_T_FLOAT */
12
13 /* Define `int32' audio data type. */
14 /* #undef DATA_T_INT32 */
15
16 /* Define to 1 if you are in debug mode */
17 /* #undef DEBUG */
18
19 /* place to install patches */
20 #define DEFAULT_PATH ".\\"
21
22 /* Define resampler. */
23 /* #undef DEFAULT_RESAMPLATION */
24
25 /* Define resampler filter. */
26 /* #undef DEFAULT_RESAMPLATION_FILTER */
27
28 /* Define resampler num. */
29 /* #undef DEFAULT_RESAMPLATION_NUM */
30
31 /* Define resampler order. */
32 /* #undef DEFAULT_RESAMPLATION_ORDER */
33
34 /* Define to 1 if you have to add "_" to every identifiers. */
35 /* #undef DLSYM_NEEDS_UNDERSCORE */
36
37 /* Define to 1 if you enable Sherry WRD */
38 #define ENABLE_SHERRY 1
39
40 /* Define to 1 if you need thread support */
41 #define ENABLE_THREAD 1
42
43 /* Define to 1 if you have the `alarm' function. */
44 /* #undef HAVE_ALARM */
45
46 /* Define to 1 if you have the <alsa/asoundlib.h> header file. */
47 /* #undef HAVE_ALSA_ASOUNDLIB_H */
48
49 /* Define to 1 if you have the <arpa/inet.h> header file. */
50 /* #undef HAVE_ARPA_INET_H */
51
52 /* Define if you have ARTS sound server */
53 /* #undef HAVE_ARTS */
54
55 /* Define to 1 if you have the <curses.h> header file. */
56 #define HAVE_CURSES_H 1
57
58 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
59    */
60 /* #undef HAVE_DIRENT_H */
61
62 /* Define to 1 if you have the <dlfcn.h> header file. */
63 /* #undef HAVE_DLFCN_H */
64
65 /* Define to 1 if you have the `dlopen' function. */
66 /* #undef HAVE_DLOPEN */
67
68 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
69 /* #undef HAVE_DOPRNT */
70
71 /* Define to 1 if you have the `dup2' function. */
72 /* #undef HAVE_DUP2 */
73
74 /* Define to 1 if you have the <errno.h> header file. */
75 #define HAVE_ERRNO_H 1
76
77 /* Define to 1 if you have the <fcntl.h> header file. */
78 #define HAVE_FCNTL_H 1
79
80 /* Define to 1 if you have the `floor' function. */
81 #define HAVE_FLOOR 1
82
83 /* Define to 1 if you have the `fork' function. */
84 /* #undef HAVE_FORK */
85
86 /* Define to 1 if you have the `fseeko' function. */
87 /* #undef HAVE_FSEEKO */
88
89 /* Define to 1 if you have the `ftello' function. */
90 /* #undef HAVE_FTELLO */
91
92 /* Define to 1 if you have the `getcwd' function. */
93 #define HAVE_GETCWD 1
94
95 /* Define to 1 if you have the `gethostbyname' function. */
96 #define HAVE_GETHOSTBYNAME 1
97
98 /* Define to 1 if you have the `getopt' function. */
99 /* #undef HAVE_GETOPT */
100
101 /* Define to 1 if you have the <getopt.h> header file. */
102 /* #undef HAVE_GETOPT_H */
103
104 /* Define to 1 if you have `getopt_long' function */
105 /* #undef HAVE_GETOPT_LONG */
106
107 /* Define to 1 if you have the `getpagesize' function. */
108 /* #undef HAVE_GETPAGESIZE */
109
110 /* Define to 1 if you have the `gettimeofday' function. */
111 /* #undef HAVE_GETTIMEOFDAY */
112
113 /* Define to 1 if you have the `getwd' function. */
114 /* #undef HAVE_GETWD */
115
116 /* Define to 1 if you have the <glob.h> header file. */
117 /* #undef HAVE_GLOB_H */
118
119 /* Define to 1 if you have GTK+ 2.x */
120 /* #undef HAVE_GTK_2 */
121
122 /* Define to 1 if you have the <inttypes.h> header file. */
123 /* #undef HAVE_INTTYPES_H */
124
125 /* Define to 1 if you have the `isatty' function. */
126 #define HAVE_ISATTY 1
127
128 /* Define to 1 if you have the `asound' library (-lasound). */
129 /* #undef HAVE_LIBASOUND */
130
131 /* Define to 1 if you have the `ICE' library (-lICE). */
132 /* #undef HAVE_LIBICE */
133
134 /* Define to 1 if you have the `m' library (-lm). */
135 /* #undef HAVE_LIBM */
136
137 /* Define to 1 if you have the `nsl' library (-lnsl). */
138 /* #undef HAVE_LIBNSL */
139
140 /* Define to 1 if you have the `ossaudio' library (-lossaudio). */
141 /* #undef HAVE_LIBOSSAUDIO */
142
143 /* Define to 1 if you have the `socket' library (-lsocket). */
144 /* #undef HAVE_LIBSOCKET */
145
146 /* Define to 1 if you have the `X11' library (-lX11). */
147 /* #undef HAVE_LIBX11 */
148
149 /* Define to 1 if you have the 'Xft' library. */
150 /* #undef HAVE_LIBXFT */
151
152 /* Define to 1 if you have the `xpg4' library (-lxpg4). */
153 /* #undef HAVE_LIBXPG4 */
154
155 /* Define to 1 if you have the `Xpm' library (-lXpm). */
156 /* #undef HAVE_LIBXPM */
157
158 /* Define to 1 if you have the <limits.h> header file. */
159 #define HAVE_LIMITS_H 1
160
161 /* Define to 1 if you have the <machine/endian.h> header file. */
162 /* #undef HAVE_MACHINE_ENDIAN_H */
163
164 /* Define to 1 if you have the <malloc.h> header file. */
165 #define HAVE_MALLOC_H 1
166
167 /* Define to 1 if you have the `memchr' function. */
168 #define HAVE_MEMCHR 1
169
170 /* Define to 1 if you have the `memmove' function. */
171 #define HAVE_MEMMOVE 1
172
173 /* Define to 1 if you have the <memory.h> header file. */
174 #define HAVE_MEMORY_H 1
175
176 /* Define to 1 if you have the `memset' function. */
177 #define HAVE_MEMSET 1
178
179 /* Define to 1 if you have the `mkstemp' function. */
180 /* #undef HAVE_MKSTEMP */
181
182 /* Define to 1 if you have a working `mmap' system call. */
183 /* #undef HAVE_MMAP */
184
185 /* Define to 1 if you have the `modf' function. */
186 #define HAVE_MODF 1
187
188 /* Define to 1 if you have the `munmap' function. */
189 /* #undef HAVE_MUNMAP */
190
191 /* Define to 1 if you have the <ncurses/curses.h> header file. */
192 /* #undef HAVE_NCURSES_CURSES_H */
193
194 /* Define to 1 if you have the <ncurses.h> header file. */
195 /* #undef HAVE_NCURSES_H */
196
197 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
198 /* #undef HAVE_NDIR_H */
199
200 /* Define to 1 if you have the <netdb.h> header file. */
201 /* #undef HAVE_NETDB_H */
202
203 /* Define to 1 if you have the <netinet/in.h> header file. */
204 /* #undef HAVE_NETINET_IN_H */
205
206 /* Define to 1 if you have <mmsystem.h> file */
207 #define HAVE_NEW_MMSYSTEM 1
208
209 /* Define to 1 if you have the <nlist.h> header file. */
210 /* #undef HAVE_NLIST_H */
211
212 /* Define to 1 if you have `open_memstream' function */
213 /* #undef HAVE_OPEN_MEMSTREAM */
214
215 /* Define to 1 if you have the `popen' function. */
216 #define HAVE_POPEN 1
217
218 /* Define to 1 if you have the `pow' function. */
219 #define HAVE_POW 1
220
221 /* Define to 1 if you have the <pthreads.h> header file. */
222 /* #undef HAVE_PTHREADS_H */
223
224 /* Define to 1 if you have the `pthread_create' function. */
225 /* #undef HAVE_PTHREAD_CREATE */
226
227 /* Define to 1 if you have the <pthread.h> header file. */
228 /* #undef HAVE_PTHREAD_H */
229
230 /* Define to 1 if you have the `select' function. */
231 #define HAVE_SELECT 1
232
233 /* Define to 1 if you have the `signal' function. */
234 #define HAVE_SIGNAL 1
235
236 /* Define to 1 if you have the <slang.h> header file. */
237 /* #undef HAVE_SLANG_H */
238
239 /* Define to 1 if you have the <slang/slang.h> header file. */
240 /* #undef HAVE_SLANG_SLANG_H */
241
242 /* Define to 1 if you have the `sleep' function. */
243 /* #undef HAVE_SLEEP */
244
245 /* Define to 1 if you have the `snd_seq_port_info_set_timestamping' function.
246    */
247 /* #undef HAVE_SND_SEQ_PORT_INFO_SET_TIMESTAMPING */
248
249 /* Define to 1 if you have the `snprintf' function. */
250 #define HAVE_SNPRINTF 1
251
252 /* Define to 1 if you have the `socket' function. */
253 #define HAVE_SOCKET 1
254
255 /* Define to 1 if you have the <soundcard.h> header file. */
256 /* #undef HAVE_SOUNDCARD_H */
257
258 /* Define to 1 if you have the `sqrt' function. */
259 #define HAVE_SQRT 1
260
261 /* Define to 1 if the system has the type `ssize_t'. */
262 /* #undef HAVE_SSIZE_T */
263
264 /* Define to 1 if you have the <stddef.h> header file. */
265 #define HAVE_STDDEF_H 1
266
267 /* Define to 1 if you have the <stdint.h> header file. */
268 /* #undef HAVE_STDINT_H */
269
270 /* Define to 1 if you have the <stdlib.h> header file. */
271 #define HAVE_STDLIB_H 1
272
273 /* Define to 1 if you have the `strcasecmp' function. */
274 #define HAVE_STRCASECMP 1
275
276 /* Define to 1 if you have the `strchr' function. */
277 #define HAVE_STRCHR 1
278
279 /* Define to 1 if you have the `strdup' function. */
280 #define HAVE_STRDUP 1
281
282 /* Define to 1 if you have the `strerror' function. */
283 #define HAVE_STRERROR 1
284
285 /* Define to 1 if cpp supports the ANSI # stringizing operator. */
286 #define HAVE_STRINGIZE 1
287
288 /* Define to 1 if you have the <strings.h> header file. */
289 /* #undef HAVE_STRINGS_H */
290
291 /* Define to 1 if you have the <string.h> header file. */
292 #define HAVE_STRING_H 1
293
294 /* Define to 1 if you have the `strlcat' function. */
295 /* #undef HAVE_STRLCAT */
296
297 /* Define to 1 if you have the `strlcpy' function. */
298 /* #undef HAVE_STRLCPY */
299
300 /* Define to 1 if you have the `strncasecmp' function. */
301 #define HAVE_STRNCASECMP 1
302
303 /* Define to 1 if you have the <stropts.h> header file. */
304 /* #undef HAVE_STROPTS_H */
305
306 /* Define to 1 if you have the `strrchr' function. */
307 #define HAVE_STRRCHR 1
308
309 /* Define to 1 if you have the `strstr' function. */
310 #define HAVE_STRSTR 1
311
312 /* Define to 1 if you have the `strtol' function. */
313 #define HAVE_STRTOL 1
314
315 /* Define to 1 if you have the <sys/asoundlib.h> header file. */
316 /* #undef HAVE_SYS_ASOUNDLIB_H */
317
318 /* Define to 1 if you have the <sys/audioio.h> header file. */
319 /* #undef HAVE_SYS_AUDIOIO_H */
320
321 /* Define to 1 if you have the <sys/awe_voice.h> header file. */
322 /* #undef HAVE_SYS_AWE_VOICE_H */
323
324 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
325    */
326 /* #undef HAVE_SYS_DIR_H */
327
328 /* Define to 1 if you have the <sys/ioctl.h> header file. */
329 /* #undef HAVE_SYS_IOCTL_H */
330
331 /* Define to 1 if you have the <sys/ipc.h> header file. */
332 /* #undef HAVE_SYS_IPC_H */
333
334 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
335    */
336 /* #undef HAVE_SYS_NDIR_H */
337
338 /* Define to 1 if you have the <sys/param.h> header file. */
339 /* #undef HAVE_SYS_PARAM_H */
340
341 /* Define to 1 if you have the <sys/shm.h> header file. */
342 /* #undef HAVE_SYS_SHM_H */
343
344 /* Define to 1 if you have the <sys/socket.h> header file. */
345 /* #undef HAVE_SYS_SOCKET_H */
346
347 /* Define to 1 if you have the <sys/soundcard.h> header file. */
348 /* #undef HAVE_SYS_SOUNDCARD_H */
349
350 /* Define to 1 if you have the <sys/stat.h> header file. */
351 #define HAVE_SYS_STAT_H 1
352
353 /* Define to 1 if you have the <sys/sysctl.h> header file. */
354 /* #undef HAVE_SYS_SYSCTL_H */
355
356 /* Define to 1 if you have the <sys/time.h> header file. */
357 /* #undef HAVE_SYS_TIME_H */
358
359 /* Define to 1 if you have the <sys/types.h> header file. */
360 #define HAVE_SYS_TYPES_H 1
361
362 /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
363 /* #undef HAVE_SYS_WAIT_H */
364
365 /* Define to 1 if you have the <termios.h> header file. */
366 /* #undef HAVE_TERMIOS_H */
367
368 /* Define to 1 if you use semun keyword */
369 /* #undef HAVE_UNION_SEMUN */
370
371 /* Define to 1 if you have the <unistd.h> header file. */
372 /* #undef HAVE_UNISTD_H */
373
374 /* Define to 1 if you have the `usleep' function. */
375 /* #undef HAVE_USLEEP */
376
377 /* Define to 1 if you have the `vfork' function. */
378 /* #undef HAVE_VFORK */
379
380 /* Define to 1 if you have the <vfork.h> header file. */
381 /* #undef HAVE_VFORK_H */
382
383 /* Define to 1 if you have the `vprintf' function. */
384 #define HAVE_VPRINTF 1
385
386 /* Define to 1 if you have the `vsnprintf' function. */
387 #define HAVE_VSNPRINTF 1
388
389 /* Define to 1 if you have the `vwprintw' function. */
390 /* #undef HAVE_VWPRINTW */
391
392 /* Define to 1 if `fork' works. */
393 /* #undef HAVE_WORKING_FORK */
394
395 /* Define to 1 if `vfork' works. */
396 /* #undef HAVE_WORKING_VFORK */
397
398 /* Define to 1 if you have the <X11/extensions/XShm.h> header file. */
399 /* #undef HAVE_X11_EXTENSIONS_XSHM_H */
400
401 /* Define to 1 if you have the <X11/Xlib.h> header file. */
402 /* #undef HAVE_X11_XLIB_H */
403
404 /* Define to 1 if you have the <X11/Xmu/ExtAgent.h> header file. */
405 /* #undef HAVE_X11_XMU_EXTAGENT_H */
406
407 /* Define to 1 if you have the <X11/Xaw3d/Tip.h> header file. */
408 /* #undef HAVE_XAW3D_TIP */
409
410 /* Define to 1 if you have the `XmuRegisterExternalAgent' function. */
411 /* #undef HAVE_XMUREGISTEREXTERNALAGENT */
412
413 /* Define to 1 if you have the `XShmCreatePixmap' function. */
414 /* #undef HAVE_XSHMCREATEPIXMAP */
415
416 /* Define to 1 if you are NOT in debug mode */
417 /* #undef NDEBUG */
418
419 /* Define to 1 if you use libneXtaw. */
420 /* #undef NEXTAW */
421
422 /* Define to 1 if you do not have <string.h>. */
423 /* #undef NO_STRING_H */
424
425 /* Define to 1 if you cannot use volatile keyword */
426 /* #undef NO_VOLATILE */
427
428 /* Define to 1 if you need offix support */
429 /* #undef OFFIX */
430
431 /* oss device name */
432 /* #undef OSS_DEVICE */
433
434 /* Name of package */
435 #define PACKAGE "TiMidity++"
436
437 /* Define to the address where bug reports for this package should be sent. */
438 #define PACKAGE_BUGREPORT "timidity-talk@lists.sourceforge.net"
439
440 /* Define to the full name of this package. */
441 #define PACKAGE_NAME "TiMidity++"
442
443 /* Define to the full name and version of this package. */
444 /* #undef PACKAGE_STRING */
445
446 /* Define to the one symbol short name of this package. */
447 #define PACKAGE_TARNAME "TiMidity++"
448
449 /* Define to the home page for this package. */
450 #define PACKAGE_URL ""
451
452 /* Define to the version of this package. */
453 /* #undef PACKAGE_VERSION */
454
455 /* a compatibility matter. ignore it. */
456 #define PKGDATADIR DEFAULT_PATH
457
458 /* place to install modules */
459 #define PKGLIBDIR "."
460
461 /* Define to 1 if the C compiler supports function prototypes. */
462 #define PROTOTYPES 1
463
464 /* Define as the return type of signal handlers (`int' or `void'). */
465 #define RETSIGTYPE void
466
467 /* shared library extention */
468 /* #undef SHARED_LIB_EXT */
469
470 /* Define to 1 if you have the ANSI C header files. */
471 /* #undef STDC_HEADERS */
472
473 /* Define to 1 if you need network support */
474 #define SUPPORT_SOCKET 1
475
476 /* Define to 1 if you need spectrogram vewer. */
477 #define SUPPORT_SOUNDSPEC 1
478
479 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
480 /* #undef TIME_WITH_SYS_TIME */
481
482 /* the output specification */
483 #define TIMIDITY_OUTPUT_ID "d"
484
485 /* for windows gui */
486 /* #undef TIMID_VERSION */
487
488 /* Define to 1 if your <sys/time.h> declares `struct tm'. */
489 #define TM_IN_SYS_TIME 1
490
491 /* Define to 1 if you use altivec */
492 /* #undef USE_ALTIVEC */
493
494 /* Define to 1 if you use PDcurses */
495 #define USE_PDCURSES 1
496
497 /* A 'va_copy' style function */
498 /* #undef VA_COPY */
499
500 /* 'va_lists' cannot be copies as values */
501 /* #undef VA_COPY_AS_ARRAY */
502
503 /* Version number of package */
504 /* #undef VERSION */
505
506 /* Define version information prefix. */
507 #undef VERSION_DATA_T
508
509 /* Define to 1 if you need spectrogram viewer. */
510 #define W32SOUNDSPEC 1
511
512 /* Define to 1 if you cpmpile windos driver. */
513 /* #undef WINDRV */
514
515 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
516    significant byte first (like Motorola and SPARC, unlike Intel). */
517 /* #undef WORDS_BIGENDIAN */
518
519 /* Define to 1 if you need wrd support for X. */
520 /* #undef WRDT_X */
521
522 /* Define to 1 if you use libXaw3d. */
523 /* #undef XAW3D */
524
525 /* Define to 1 if you use libXawPlus. */
526 /* #undef XAWPLUS */
527
528 /* Define to 1 if you want xdnd support. */
529 /* #undef XDND */
530
531 /* Define to 1 if the X Window System is missing or not being used. */
532 #define X_DISPLAY_MISSING 1
533
534 /* Get 64-bit file size support */
535 /* #undef _FILE_OFFSET_BITS */
536
537 /* Define for ftello and fseeko extension. */
538 /* #undef _LARGEFILE_SOURCE */
539
540 /* Define to 1 if type `char' is unsigned and you are not using gcc.  */
541 #ifndef __CHAR_UNSIGNED__
542 /* # undef __CHAR_UNSIGNED__ */
543 #endif
544
545 /* Define like PROTOTYPES; this can be used by system headers. */
546 #define __PROTOTYPES 1
547
548 /* Define to empty if `const' does not conform to ANSI C. */
549 /* #undef const */
550
551 /* Define to `__inline__' or `__inline' if that's what the C compiler
552    calls it, or to nothing if 'inline' is not supported under any name.  */
553 #define inline __inline
554
555 /* Define to `long int' if <sys/types.h> does not define. */
556 /* #undef off_t */
557
558 /* for VC */
559 #define pclose _pclose
560
561 /* Define to `int' if <sys/types.h> does not define. */
562 /* #undef pid_t */
563
564 /* for VC */
565 #define popen _popen
566
567 /* Define to `unsigned int' if <sys/types.h> does not define. */
568 /* #undef size_t */
569
570 /* for VC */
571 #define snprintf _snprintf
572
573 /* Define to `int' if <sys/types.h> does not define. */
574 #define ssize_t long
575
576 /* Define as `fork' if `vfork' does not work. */
577 /* #undef vfork */
578
579 /* Define to empty if the keyword `volatile' does not work. Warning: valid
580    code using `volatile' can become incorrect without. Disable with care. */
581 /* #undef volatile */
582
583
584
585 #ifndef RC_INVOKED
586 /* Shift-JIS (MBCS) */
587
588 #ifdef NDEBUG
589 #pragma inline_recursion(on) // \83C\83\93\83\89\83C\83\93\93W\8aJ\97L\8cø
590 #pragma inline_depth(64)
591 #endif
592
593 #pragma warning(disable:4996) // \88À\91S\82Å\82Í\82È\82¢\8aÖ\90\94\82Ì\8eg\97p
594 #pragma warning(disable:4819) // \95\8e\9a\83R\81[\83h
595 #pragma warning(disable:4101) // \88ê\93x\82à\8eg\97p\82µ\82Ä\82¢\82È\82¢\95Ï\90\94
596 #pragma warning(disable:4018) // signed unsigned \82Ì\94ä\8ar
597 //#pragma warning(disable:4013) // int\8c^\82Ì\8aO\95\94\8aÖ\90\94\82Æ\82Ý\82È\82·
598
599 #ifdef NDEBUG
600 #pragma warning(disable:4133) // \8cÝ\8a·\90«\82ª\82È\82¢\8cÄ\82Ñ\8fo\82µ
601 #endif
602
603 //#pragma warning(disable:4554) // \83V\83t\83g\89\89\8eZ\8eq\82Ì\97D\90æ\8f\87\88Ê
604
605 #ifdef _DEBUG
606 //#pragma warning(disable:4005) // \8dÄ\92è\8b`
607 //#pragma warning(disable:4244) // \8c^\95Ï\8a·
608 #pragma warning(disable:4068) // \95s\96¾\82È\83v\83\89\83O\83}
609 #endif
610
611 #endif
612
613
614
615 /* #define FLOAT64_BUFFER 1 */
616 #if !defined(DATA_T_INT32) && !defined(DATA_T_FLOAT) && !defined(DATA_T_DOUBLE)
617 #define DATA_T_INT32 1
618 /* #define DATA_T_FLOAT 1 */
619 /* #define DATA_T_DOUBLE 1 */
620 #endif
621
622 #ifdef DATA_T_INT32
623 #undef SUPPORT_SOUNDSPEC
624 #undef W32SOUNDSPEC
625 #else
626 #ifndef W32SOUNDSPEC
627 #define W32SOUNDSPEC
628 #endif
629 #endif
630
631 #if 0 //defined(DATA_T_FLOAT) || defined(DATA_T_DOUBLE)
632 #define EFFECT_LEVEL_FLOAT 1
633 #endif
634
635 #if defined(_M_AMD64)
636 #define OPT_MODE 0
637 #elif defined(_M_IX86)
638 #define OPT_MODE 1
639 #endif
640
641 #define CONFIG_FILE DEFAULT_PATH "timidity.cfg"
642 #define AU_W32 1
643 #define AU_NPIPE 1
644 #define AU_VORBIS 1
645 #define AU_VORBIS_DLL 1
646 #define AU_GOGO 1
647 #define AU_GOGO_DLL 1
648 #define AU_LAME 1
649 #define AU_FLAC 1
650 #define AU_FLAC_DLL 1
651 #define AU_OGGFLAC 1
652 /* #define AU_OGGFLAC_DLL 1 */
653 #define AU_OPUS 1
654 #define AU_OPUS_DLL 1
655 #define AU_SPEEX 1
656 /* #define AU_AO 1 */
657 #define AU_PORTAUDIO 1
658 #define AU_PORTAUDIO_DLL 1
659 #define AU_BENCHMARK 1
660 #define PORTAUDIO_V19 1
661 #define VST_LOADER_ENABLE 1
662 #define VSTWRAP_EXT 1
663 #define SMFCONV 1
664 #define WINSOCK 1
665 #define __W32READDIR__ 1
666 #define ANOTHER_MAIN 1
667 #define FLAC__NO_DLL 1
668
669 #undef WINVER
670 #define WINVER 0x0600
671
672 #ifndef _WIN32_IE
673 #define _WIN32_IE 0x0400
674 #endif
675
676 #ifndef _WIN32_WINNT
677 #define _WIN32_WINNT WINVER
678 #endif
679
680 /* Windows 2000 or later */
681 /* #if WINVER >= 0x0500
682 #define HAVE_GETADDRINFO 1
683 #endif */
684
685 #ifndef NDEBUG
686 #define TIMIDITY_LEAK_CHECK 1
687 #endif
688
689 #include <winsock2.h>
690 /* #include <Ws2tcpip.h> */
691 /* #include <Wspiapi.h> */
692 #include <windows.h>
693
694 #include <time.h>
695 #include <io.h>
696 #include <direct.h>
697
698 #ifdef TIMIDITY_LEAK_CHECK
699 #define _CRTDBG_MAP_ALLOC 1
700 #include <crtdbg.h>
701 #ifdef __cplusplus
702 #define new new(_NORMAL_BLOCK, __FILE__, __LINE__)
703 #endif
704 #define CRTDEBUGFLAGS (_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF)
705 #else
706 #define CRTDEBUGFLAGS (0)
707 #endif
708
709 #define STDIN_FILENO 0
710 #define STDOUT_FILENO 1
711 #define STDERR_FILENO 2
712
713 #ifndef strncasecmp
714 #define strncasecmp _strnicmp
715 #endif
716 #ifndef strcasecmp
717 #define strcasecmp _stricmp
718 #endif
719 #define vsnprintf _vsnprintf
720 #define open _open
721 #define close _close
722 #define write _write
723 #define unlink _unlink
724 #define fchdir(fd) (0)
725
726
727
728 /*
729   for Visual Studio Project Option 
730   LIB: mmsystem.lib comdlg32.lib
731   MACRO: _MT, _WINDOWS
732   Multithread library
733   */
734
735 #define NAME_MAX (MAX_PATH)
736 #define NLS "\r\n"
737
738 /* Win32GUI Synthesizer */
739 #ifdef TWSYNG32
740 #define DEFAULT_VOICES               64 /* 64 voices */
741 #define DEFAULT_AUDIO_BUFFER_BITS     9 /* 512sample 11ms (44.1kHz) */
742 #define DEFAULT_AUDIO_BUFFER_NUM     13 /* 150ms over */
743 #define DEFAULT_COMPUTE_BUFFER_BITS   8 /* ratio 5ms (44.1kHz) */
744 #define TWSYNG32INI 1 // use twsyng32.ini or timpp32g.ini ??
745 /* #undef AU_NPIPE */
746 #undef AU_VORBIS
747 #undef AU_VORBIS_DLL
748 #undef AU_GOGO
749 #undef AU_GOGO_DLL
750 /* #undef AU_PORTAUDIO */
751 /* #undef AU_PORTAUDIO_DLL */
752 #undef AU_LAME
753 /* #undef AU_FLAC */
754 /* #undef AU_FLAC_DLL */
755 /* #undef AU_OGGFLAC */
756 /* #undef AU_OGGFLAC_DLL */
757 /* #undef AU_OPUS */
758 /* #undef AU_OPUS_DLL */
759 #undef AU_SPEEX
760 /* #undef AU_AO */
761 #undef AU_WRITE_MIDI
762 /* #undef AU_LIST */
763 #undef AU_MODMIDI
764 #undef AU_VOLUME_CALC
765 #undef AU_BENCHMARK
766 /* #undef VST_LOADER_ENABLE */
767 /* #undef VSTWRAP_EXT */
768 #undef SMFCONV
769 #undef SUPPORT_SOCKET
770 /* #undef SUPPORT_SOUNDSPEC */
771 /* #undef W32SOUNDSPEC */
772 #endif
773
774 /* Win32 Synthesizer Service */
775 #ifdef TWSYNSRV
776 #define DEFAULT_VOICES               64 /* 64 voices */
777 #define DEFAULT_AUDIO_BUFFER_BITS     9 /* 512sample 11ms (44.1kHz) */
778 #define DEFAULT_AUDIO_BUFFER_NUM     13 /* 150ms over */
779 #define DEFAULT_COMPUTE_BUFFER_BITS   8 /* ratio 5ms (44.1kHz) */
780 #define TWSYNG32INI 1 // use twsyng32.ini or timpp32g.ini ??
781 /* #undef AU_NPIPE */
782 #undef AU_VORBIS
783 #undef AU_VORBIS_DLL
784 #undef AU_GOGO
785 #undef AU_GOGO_DLL
786 /* #undef AU_PORTAUDIO */
787 /* #undef AU_PORTAUDIO_DLL */
788 #undef AU_LAME
789 #undef AU_FLAC
790 #undef AU_FLAC_DLL
791 #undef AU_OGGFLAC
792 #undef AU_OGGFLAC_DLL
793 #undef AU_OPUS
794 #undef AU_OPUS_DLL
795 #undef AU_SPEEX
796 /* #undef AU_AO */
797 #undef AU_WRITE_MIDI
798 #undef AU_LIST
799 #undef AU_MODMIDI
800 #undef AU_VOLUME_CALC
801 #undef AU_BENCHMARK
802 /* #undef VST_LOADER_ENABLE */
803 /* #undef VSTWRAP_EXT */
804 #undef SMFCONV
805 #undef SUPPORT_SOCKET
806 #undef SUPPORT_SOUNDSPEC
807 #undef W32SOUNDSPEC
808 #undef __W32G__ /* for Win32 GUI */
809 #endif
810
811 /* Win32 Driver */
812 #ifdef WINDRV
813 #define TWSYNG32 1
814 #define TWSYNSRV 1
815 #define DEFAULT_VOICES               64 /* 64 voices */
816 #define DEFAULT_AUDIO_BUFFER_BITS     9 /* 512sample 11ms (44.1kHz) */
817 #define DEFAULT_AUDIO_BUFFER_NUM     13 /* 150ms over */
818 #define DEFAULT_COMPUTE_BUFFER_BITS   8 /* ratio 5ms (44.1kHz) */
819 #define TIMDRVINI 1 // use timdrv.ini or twsyng32.ini or timpp32g.ini ??
820 #undef AU_NPIPE
821 #undef AU_VORBIS
822 #undef AU_VORBIS_DLL
823 #undef AU_GOGO
824 #undef AU_GOGO_DLL
825 /* #undef AU_PORTAUDIO */
826 /* #undef AU_PORTAUDIO_DLL */
827 #undef AU_LAME
828 #undef AU_FLAC
829 #undef AU_FLAC_DLL
830 #undef AU_OGGFLAC
831 #undef AU_OGGFLAC_DLL
832 #undef AU_OPUS
833 #undef AU_OPUS_DLL
834 #undef AU_SPEEX
835 #undef AU_AO
836 #undef AU_WRITE_MIDI
837 #undef AU_LIST
838 #undef AU_MODMIDI
839 #undef AU_VOLUME_CALC
840 #undef AU_BENCHMARK
841 #undef VST_LOADER_ENABLE
842 #undef VSTWRAP_EXT
843 #undef SMFCONV
844 #undef SUPPORT_SOCKET
845 #undef SUPPORT_SOUNDSPEC
846 #undef W32SOUNDSPEC
847 #undef __W32G__ /* for Win32 GUI */
848 #endif
849
850 /* Win32GUI Standalone */
851 #if defined(__W32G__) && !TWSYNG32 && !KBTIM
852 #define DEFAULT_AUDIO_BUFFER_BITS    12 /* 4096sample 92ms (44.1kHz) */
853 #define DEFAULT_AUDIO_BUFFER_NUM     17 /* 1500ms over */
854 /* #undef AU_NPIPE */
855 #undef AU_WRITE_MIDI
856 /* #undef AU_LIST */
857 #undef AU_MODMIDI
858 #define FORCE_TIME_PERIOD 1
859 #endif
860
861 /* Win32 Console */
862 #if defined(__W32__) && !defined(__W32G__) && !TWSYNSRV
863 #define TIM_CUI 1
864 #define DEFAULT_AUDIO_BUFFER_BITS    9 /* 512sample 11ms (44.1kHz) */
865 #define DEFAULT_AUDIO_BUFFER_NUM     65 /* 750ms over */
866 #define AU_VOLUME_CALC 1
867 #undef ANOTHER_MAIN
868 #undef AU_WRITE_MIDI
869 /* #undef AU_LIST */
870 /* #undef AU_MODMIDI */
871 #undef IA_W32G_SYN      /* for Win32 GUI */
872 #define FORCE_TIME_PERIOD 1
873 #endif
874
875 /* Windows x64 */
876 #if defined(WIN64) || defined(_WIN64)
877 #ifndef _AMD64_
878 #define _AMD64_ 1
879 #endif
880
881 /* #undef AU_NPIPE */
882 /* #undef AU_VORBIS */
883 /* #undef AU_VORBIS_DLL */
884 #undef AU_GOGO
885 #undef AU_GOGO_DLL
886 /* #undef AU_PORTAUDIO */
887 /* #undef AU_PORTAUDIO_DLL */
888 #undef AU_LAME
889 /* #undef AU_FLAC */
890 /* #undef AU_FLAC_DLL */
891 /* #undef AU_OGGFLAC */
892 /* #undef AU_OGGFLAC_DLL */
893 #undef AU_OPUS
894 #undef AU_OPUS_DLL
895 #undef AU_SPEEX
896 #undef AU_AO
897 #undef VST_LOADER_ENABLE
898 #undef VSTWRAP_EXT
899 #undef SMFCONV
900 #endif
901
902 /* cfgforsf */
903 #ifdef CFG_FOR_SF
904 #undef AU_NPIPE
905 #undef AU_VORBIS
906 #undef AU_VORBIS_DLL
907 #undef AU_GOGO
908 #undef AU_GOGO_DLL
909 #undef AU_PORTAUDIO
910 #undef AU_PORTAUDIO_DLL
911 #undef AU_LAME
912 #undef AU_FLAC
913 #undef AU_FLAC_DLL
914 #undef AU_OGGFLAC
915 #undef AU_OGGFLAC_DLL
916 #undef AU_OPUS
917 #undef AU_OPUS_DLL
918 #undef AU_SPEEX
919 #undef AU_AO
920 #undef AU_WRITE_MIDI
921 #undef AU_LIST
922 #undef AU_MODMIDI
923 #undef AU_VOLUME_CALC
924 #undef AU_BENCHMARK
925 #undef VST_LOADER_ENABLE
926 #undef VSTWRAP_EXT
927 #undef SMFCONV
928 #undef SUPPORT_SOCKET
929 #undef SUPPORT_SOUNDSPEC
930 #undef W32SOUNDSPEC
931 #undef __W32G__
932 #undef HAVE_POPEN
933 #endif
934
935 /* KbTim and in_timidity */
936 #ifdef KBTIM /*added by Kobarin*/
937 #include "kbtim/kbtim_config.h"
938 #define KBTIM32 1
939
940 #undef AU_NPIPE
941 #undef AU_VORBIS
942 #undef AU_VORBIS_DLL
943 #undef AU_GOGO
944 #undef AU_GOGO_DLL
945 #undef AU_PORTAUDIO
946 #undef AU_PORTAUDIO_DLL
947 #undef AU_LAME
948 #undef AU_FLAC
949 #undef AU_FLAC_DLL
950 #undef AU_OGGFLAC
951 #undef AU_OGGFLAC_DLL
952 #undef AU_OPUS
953 #undef AU_OPUS_DLL
954 #undef AU_SPEEX
955 #undef AU_AO
956 #undef AU_VOLUME_CALC
957 #undef AU_BENCHMARK
958 #undef VST_LOADER_ENABLE
959 #undef VSTWRAP_EXT
960 #ifndef IN_TIMIDITY
961 #undef SMFCONV
962 #endif
963 #undef SUPPORT_SOCKET
964 #undef SUPPORT_SOUNDSPEC
965 #undef W32SOUNDSPEC
966 #undef HAVE_POPEN
967 #endif
968
969 #endif /* !VS2005_CONFIG_HEADER */
970