-void sound_play(void)
-{
- if (!use_native_em_sound)
- {
- int i;
-
-#if 0
- UpdateEngineValues(screen_x / TILEX, screen_y / TILEY);
-#endif
-
- return;
-
- for (i = 0; i < SAMPLE_MAX; i++)
- if (play[i])
- PlayLevelSound_EM(play_x[i], play_y[i], play_element[i], i);
- }
-
-#if defined(AUDIO_UNIX_NATIVE)
- if (use_native_em_sound && sound_pipe[1] != -1)
- {
- if (write(sound_pipe[1], &play, sizeof(play)) == -1)
- {
- Error(ERR_WARN, "cannot write into pipe to child process -- no sounds");
-
- if (sound_pipe[0] != -1)
- {
- close(sound_pipe[0]);
- sound_pipe[0] = -1;
- }
-
- if (sound_pipe[1] != -1)
- {
- close(sound_pipe[1]);
- sound_pipe[1] = -1;
- }
- }
- }
-
-#endif
-
- memset(play, 0, sizeof(play));
-}
-
-unsigned int InitEngineRND_EM(long seed)