src/audio/SDL_audio.c
changeset 6430 48d519500f7e
parent 6389 43a190ad60a7
child 6885 700f1b25f77f
equal deleted inserted replaced
6429:ff5e34883bf8 6430:48d519500f7e
  1026     if (!current_audio.impl.ProvidesOwnCallbackThread) {
  1026     if (!current_audio.impl.ProvidesOwnCallbackThread) {
  1027         /* Start the audio thread */
  1027         /* Start the audio thread */
  1028         char name[64];
  1028         char name[64];
  1029         SDL_snprintf(name, sizeof (name), "SDLAudioDev%d", (int) (id + 1));
  1029         SDL_snprintf(name, sizeof (name), "SDLAudioDev%d", (int) (id + 1));
  1030 /* !!! FIXME: this is nasty. */
  1030 /* !!! FIXME: this is nasty. */
  1031 #if (defined(__WIN32__) && !defined(_WIN32_WCE)) && !defined(HAVE_LIBC)
  1031 #if defined(__WIN32__) && !defined(HAVE_LIBC)
  1032 #undef SDL_CreateThread
  1032 #undef SDL_CreateThread
  1033         device->thread = SDL_CreateThread(SDL_RunAudio, name, device, NULL, NULL);
  1033         device->thread = SDL_CreateThread(SDL_RunAudio, name, device, NULL, NULL);
  1034 #else
  1034 #else
  1035         device->thread = SDL_CreateThread(SDL_RunAudio, name, device);
  1035         device->thread = SDL_CreateThread(SDL_RunAudio, name, device);
  1036 #endif
  1036 #endif