src/audio/SDL_audio.c
changeset 6977 b73d51026c68
parent 6905 4882bcc19578
child 7009 161b7b6a5303
     1.1 --- a/src/audio/SDL_audio.c	Thu Mar 07 15:37:08 2013 -0800
     1.2 +++ b/src/audio/SDL_audio.c	Thu Mar 07 20:12:40 2013 -0800
     1.3 @@ -200,7 +200,7 @@
     1.4      if (device->thread && (SDL_ThreadID() == device->threadid)) {
     1.5          return;
     1.6      }
     1.7 -    SDL_mutexP(device->mixer_lock);
     1.8 +    SDL_LockMutex(device->mixer_lock);
     1.9  }
    1.10  
    1.11  static void
    1.12 @@ -209,7 +209,7 @@
    1.13      if (device->thread && (SDL_ThreadID() == device->threadid)) {
    1.14          return;
    1.15      }
    1.16 -    SDL_mutexV(device->mixer_lock);
    1.17 +    SDL_UnlockMutex(device->mixer_lock);
    1.18  }
    1.19  
    1.20  
    1.21 @@ -407,9 +407,9 @@
    1.22                  }
    1.23  
    1.24                  /* Read from the callback into the _input_ stream */
    1.25 -                SDL_mutexP(device->mixer_lock);
    1.26 +                SDL_LockMutex(device->mixer_lock);
    1.27                  (*fill) (udata, istream, istream_len);
    1.28 -                SDL_mutexV(device->mixer_lock);
    1.29 +                SDL_UnlockMutex(device->mixer_lock);
    1.30  
    1.31                  /* Convert the audio if necessary and write to the streamer */
    1.32                  if (device->convert.needed) {
    1.33 @@ -480,9 +480,9 @@
    1.34                  }
    1.35              }
    1.36  
    1.37 -            SDL_mutexP(device->mixer_lock);
    1.38 +            SDL_LockMutex(device->mixer_lock);
    1.39              (*fill) (udata, stream, stream_len);
    1.40 -            SDL_mutexV(device->mixer_lock);
    1.41 +            SDL_UnlockMutex(device->mixer_lock);
    1.42  
    1.43              /* Convert the audio if necessary */
    1.44              if (device->convert.needed) {