src/audio/baudio/SDL_beaudio.cc
changeset 6977 b73d51026c68
parent 6885 700f1b25f77f
child 7038 7f22b9ba218f
     1.1 --- a/src/audio/baudio/SDL_beaudio.cc	Thu Mar 07 15:37:08 2013 -0800
     1.2 +++ b/src/audio/baudio/SDL_beaudio.cc	Thu Mar 07 20:12:40 2013 -0800
     1.3 @@ -54,18 +54,18 @@
     1.4  
     1.5      if (!audio->paused) {
     1.6          if (audio->convert.needed) {
     1.7 -            SDL_mutexP(audio->mixer_lock);
     1.8 +            SDL_LockMutex(audio->mixer_lock);
     1.9              (*audio->spec.callback) (audio->spec.userdata,
    1.10                                       (Uint8 *) audio->convert.buf,
    1.11                                       audio->convert.len);
    1.12 -            SDL_mutexV(audio->mixer_lock);
    1.13 +            SDL_UnlockMutex(audio->mixer_lock);
    1.14              SDL_ConvertAudio(&audio->convert);
    1.15              SDL_memcpy(stream, audio->convert.buf, audio->convert.len_cvt);
    1.16          } else {
    1.17 -            SDL_mutexP(audio->mixer_lock);
    1.18 +            SDL_LockMutex(audio->mixer_lock);
    1.19              (*audio->spec.callback) (audio->spec.userdata,
    1.20                                       (Uint8 *) stream, len);
    1.21 -            SDL_mutexV(audio->mixer_lock);
    1.22 +            SDL_UnlockMutex(audio->mixer_lock);
    1.23          }
    1.24      }
    1.25  }