src/audio/SDL_audio.c
changeset 9391 3a54985e999e
parent 9382 1c0f6952e65e
child 9392 92e23eff9b89
     1.1 --- a/src/audio/SDL_audio.c	Wed Mar 18 12:03:32 2015 -0400
     1.2 +++ b/src/audio/SDL_audio.c	Wed Mar 18 10:09:23 2015 -0400
     1.3 @@ -616,6 +616,7 @@
     1.4                  }
     1.5  
     1.6                  /* Read from the callback into the _input_ stream */
     1.7 +                // !!! FIXME: this should be LockDevice.
     1.8                  SDL_LockMutex(device->mixer_lock);
     1.9                  (*fill) (udata, istream, istream_len);
    1.10                  SDL_UnlockMutex(device->mixer_lock);
    1.11 @@ -687,6 +688,7 @@
    1.12                  }
    1.13              }
    1.14  
    1.15 +            /* !!! FIXME: this should be LockDevice. */
    1.16              SDL_LockMutex(device->mixer_lock);
    1.17              if (device->paused) {
    1.18                  SDL_memset(stream, silence, stream_len);
    1.19 @@ -1138,7 +1140,7 @@
    1.20      device->paused = 1;
    1.21      device->iscapture = iscapture;
    1.22  
    1.23 -    /* Create a semaphore for locking the sound buffers */
    1.24 +    /* Create a mutex for locking the sound buffers */
    1.25      if (!current_audio.impl.SkipMixerLock) {
    1.26          device->mixer_lock = SDL_CreateMutex();
    1.27          if (device->mixer_lock == NULL) {