src/audio/nacl/SDL_naclaudio.c
changeset 10288 d45b253d1174
parent 10281 2a002e96888f
child 10737 3406a0f8b041
equal deleted inserted replaced
10287:d4495a97f89c 10288:d45b253d1174
    48 static void nacl_audio_callback(void* samples, uint32_t buffer_size, PP_TimeDelta latency, void* data) {
    48 static void nacl_audio_callback(void* samples, uint32_t buffer_size, PP_TimeDelta latency, void* data) {
    49     SDL_AudioDevice* _this = (SDL_AudioDevice*) data;
    49     SDL_AudioDevice* _this = (SDL_AudioDevice*) data;
    50     
    50     
    51     SDL_LockMutex(private->mutex);  /* !!! FIXME: is this mutex necessary? */
    51     SDL_LockMutex(private->mutex);  /* !!! FIXME: is this mutex necessary? */
    52 
    52 
    53     if (SDL_AtomicGet(&this->enabled) && !SDL_AtomicGet(&this->paused)) {
    53     if (SDL_AtomicGet(&_this->enabled) && !SDL_AtomicGet(&_this->paused)) {
    54         if (_this->convert.needed) {
    54         if (_this->convert.needed) {
    55             SDL_LockMutex(_this->mixer_lock);
    55             SDL_LockMutex(_this->mixer_lock);
    56             (*_this->spec.callback) (_this->spec.userdata,
    56             (*_this->spec.callback) (_this->spec.userdata,
    57                                      (Uint8 *) _this->convert.buf,
    57                                      (Uint8 *) _this->convert.buf,
    58                                      _this->convert.len);
    58                                      _this->convert.len);