src/audio/SDL_audio.c
changeset 6977 b73d51026c68
parent 6905 4882bcc19578
child 7009 161b7b6a5303
--- a/src/audio/SDL_audio.c	Thu Mar 07 15:37:08 2013 -0800
+++ b/src/audio/SDL_audio.c	Thu Mar 07 20:12:40 2013 -0800
@@ -200,7 +200,7 @@
     if (device->thread && (SDL_ThreadID() == device->threadid)) {
         return;
     }
-    SDL_mutexP(device->mixer_lock);
+    SDL_LockMutex(device->mixer_lock);
 }
 
 static void
@@ -209,7 +209,7 @@
     if (device->thread && (SDL_ThreadID() == device->threadid)) {
         return;
     }
-    SDL_mutexV(device->mixer_lock);
+    SDL_UnlockMutex(device->mixer_lock);
 }
 
 
@@ -407,9 +407,9 @@
                 }
 
                 /* Read from the callback into the _input_ stream */
-                SDL_mutexP(device->mixer_lock);
+                SDL_LockMutex(device->mixer_lock);
                 (*fill) (udata, istream, istream_len);
-                SDL_mutexV(device->mixer_lock);
+                SDL_UnlockMutex(device->mixer_lock);
 
                 /* Convert the audio if necessary and write to the streamer */
                 if (device->convert.needed) {
@@ -480,9 +480,9 @@
                 }
             }
 
-            SDL_mutexP(device->mixer_lock);
+            SDL_LockMutex(device->mixer_lock);
             (*fill) (udata, stream, stream_len);
-            SDL_mutexV(device->mixer_lock);
+            SDL_UnlockMutex(device->mixer_lock);
 
             /* Convert the audio if necessary */
             if (device->convert.needed) {