-#if 0
- objPixmap = emc_bitmaps[0]->drawable;
- sprPixmap = emc_bitmaps[1]->drawable;
-
- objmaskBitmap = emc_bitmaps[0]->clip_mask;
- sprmaskBitmap = emc_bitmaps[1]->clip_mask;
-#endif
-
- screenBitmap = CreateBitmap(MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY,
- DEFAULT_DEPTH);
-#endif
-
-#if 0
- spriteBitmap = XCreatePixmap(display, window->drawable, TILEX, TILEY, 1);
- if (spriteBitmap == 0)
- Error(ERR_EXIT, "failed to create sprite pixmap for EM engine");
-
- gcValues.function =
- objmaskBitmap ? GXcopyInverted : sprmaskBitmap ? GXcopy : GXset;
- gcValues.graphics_exposures = False;
- spriteGC = XCreateGC(display, spriteBitmap, GCFunction | GCGraphicsExposures,
- &gcValues);
- if (spriteGC == 0)
- Error(ERR_EXIT, "failed to create sprite GC for EM engine");
-#endif
-
- /* ----------------------------------------------------------------- */
-
-#if defined(AUDIO_UNIX_NATIVE)
-
-#if defined(PLATFORM_LINUX) || defined(PLATFORM_BSD)
-
- if (1)
- {
- char name[MAXNAME+2];
- int i;
-
- for (i = 0; i < SAMPLE_MAX; i++)
- {
- name[MAXNAME] = 0;
-
- if (arg_basedir)
- {
- snprintf(name, MAXNAME+2, "%s/%s/%s", arg_basedir, EM_SND_DIR,
- sound_names[i]);
- }
- else
- {
- snprintf(name, MAXNAME+2, "%s/%s", EM_SND_DIR, sound_names[i]);
- }
-
- if (name[MAXNAME])
- Error(ERR_EXIT, "buffer overflow when reading sounds directory");
-
- if (read_sample(name, &sound_data[i], &sound_length[i]))
- return(1);
-
- {
- short *ptr, *stop;
- int mult = sound_volume[i] * 65536 / (100 * MIXER_MAX);
- stop = sound_data[i] + sound_length[i];
- for (ptr = sound_data[i]; ptr < stop; ptr++)
- *ptr = (*ptr * mult) / 65536;
- }
- }
-
- if (pipe(sound_pipe) == -1)
- {
- Error(ERR_WARN, "unable to create sound pipe for EM engine -- no sound");
-
- return(1);
- }
-
- sound_pid = fork();
- if (sound_pid == -1)
- {
- Error(ERR_WARN, "unable to fork sound thread for EM engine -- no sound");
-
- return(1);
- }
-
- close(sound_pipe[sound_pid == 0]);
- sound_pipe[sound_pid == 0] = -1;
- if (sound_pid == 0)
- _exit(sound_thread());
-
- signal(SIGPIPE, SIG_IGN); /* dont crash if sound process dies */
- }
-
-#endif /* defined(PLATFORM_LINUX) || defined(PLATFORM_BSD) */