src/audio/winmm/SDL_winmm.c
changeset 12201 8bdc4d340419
parent 11811 5d94cb6b24d3
child 12503 806492103856
     1.1 --- a/src/audio/winmm/SDL_winmm.c	Sat Aug 18 17:23:40 2018 -0400
     1.2 +++ b/src/audio/winmm/SDL_winmm.c	Mon Sep 24 11:49:25 2018 -0700
     1.3 @@ -78,7 +78,7 @@
     1.4      capstyp##2W caps; \
     1.5      UINT i; \
     1.6      for (i = 0; i < devcount; i++) { \
     1.7 -	if (wave##typ##GetDevCaps(i,(LP##capstyp##W)&caps,sizeof(caps))==MMSYSERR_NOERROR) { \
     1.8 +        if (wave##typ##GetDevCaps(i,(LP##capstyp##W)&caps,sizeof(caps))==MMSYSERR_NOERROR) { \
     1.9              char *name = WIN_LookupAudioDeviceName(caps.szPname,&caps.NameGuid); \
    1.10              if (name != NULL) { \
    1.11                  SDL_AddAudioDevice((int) iscapture, name, (void *) ((size_t) i+1)); \
    1.12 @@ -375,8 +375,7 @@
    1.13  #endif
    1.14  
    1.15      /* Create the audio buffer semaphore */
    1.16 -    this->hidden->audio_sem =
    1.17 -		CreateSemaphore(NULL, iscapture ? 0 : NUM_BUFFERS - 1, NUM_BUFFERS, NULL);
    1.18 +    this->hidden->audio_sem = CreateSemaphore(NULL, iscapture ? 0 : NUM_BUFFERS - 1, NUM_BUFFERS, NULL);
    1.19      if (this->hidden->audio_sem == NULL) {
    1.20          return SDL_SetError("Couldn't create semaphore");
    1.21      }