src/audio/winmm/SDL_winmm.c
changeset 6430 48d519500f7e
parent 6352 a9bcd26e7105
child 6885 700f1b25f77f
     1.1 --- a/src/audio/winmm/SDL_winmm.c	Fri Sep 14 18:18:38 2012 -0400
     1.2 +++ b/src/audio/winmm/SDL_winmm.c	Sat Sep 15 10:59:39 2012 -0400
     1.3 @@ -31,9 +31,6 @@
     1.4  #include "SDL_audio.h"
     1.5  #include "../SDL_audio_c.h"
     1.6  #include "SDL_winmm.h"
     1.7 -#if defined(_WIN32_WCE) && (_WIN32_WCE < 300)
     1.8 -#include "win_ce_semaphore.h"
     1.9 -#endif
    1.10  
    1.11  #define DETECT_DEV_IMPL(typ, capstyp) \
    1.12  static void DetectWave##typ##Devs(SDL_AddAudioDevice addfn) { \
    1.13 @@ -75,11 +72,7 @@
    1.14          return;
    1.15  
    1.16      /* Signal that we have a new buffer of data */
    1.17 -#if defined(_WIN32_WCE) && (_WIN32_WCE < 300)
    1.18 -    ReleaseSemaphoreCE(this->hidden->audio_sem, 1, NULL);
    1.19 -#else
    1.20      ReleaseSemaphore(this->hidden->audio_sem, 1, NULL);
    1.21 -#endif
    1.22  }
    1.23  
    1.24  
    1.25 @@ -95,11 +88,7 @@
    1.26          return;
    1.27  
    1.28      /* Signal that we are done playing a buffer */
    1.29 -#if defined(_WIN32_WCE) && (_WIN32_WCE < 300)
    1.30 -    ReleaseSemaphoreCE(this->hidden->audio_sem, 1, NULL);
    1.31 -#else
    1.32      ReleaseSemaphore(this->hidden->audio_sem, 1, NULL);
    1.33 -#endif
    1.34  }
    1.35  
    1.36  static void
    1.37 @@ -123,11 +112,7 @@
    1.38  WINMM_WaitDevice(_THIS)
    1.39  {
    1.40      /* Wait for an audio chunk to finish */
    1.41 -#if defined(_WIN32_WCE) && (_WIN32_WCE < 300)
    1.42 -    WaitForSemaphoreCE(this->hidden->audio_sem, INFINITE);
    1.43 -#else
    1.44      WaitForSingleObject(this->hidden->audio_sem, INFINITE);
    1.45 -#endif
    1.46  }
    1.47  
    1.48  static Uint8 *
    1.49 @@ -173,11 +158,7 @@
    1.50          int i;
    1.51  
    1.52          if (this->hidden->audio_sem) {
    1.53 -#if defined(_WIN32_WCE) && (_WIN32_WCE < 300)
    1.54 -            CloseSynchHandle(this->hidden->audio_sem);
    1.55 -#else
    1.56              CloseHandle(this->hidden->audio_sem);
    1.57 -#endif
    1.58              this->hidden->audio_sem = 0;
    1.59          }
    1.60  
    1.61 @@ -349,11 +330,7 @@
    1.62  
    1.63      /* Create the audio buffer semaphore */
    1.64      this->hidden->audio_sem =
    1.65 -#if defined(_WIN32_WCE) && (_WIN32_WCE < 300)
    1.66 -        CreateSemaphoreCE(NULL, NUM_BUFFERS - 1, NUM_BUFFERS, NULL);
    1.67 -#else
    1.68          CreateSemaphore(NULL, NUM_BUFFERS - 1, NUM_BUFFERS, NULL);
    1.69 -#endif
    1.70      if (this->hidden->audio_sem == NULL) {
    1.71          WINMM_CloseDevice(this);
    1.72          SDL_SetError("Couldn't create semaphore");