src/audio/emscripten/SDL_emscriptenaudio.c
changeset 10238 6fa358b97f4b
parent 9998 f67cf37e9cd4
child 10255 9530fc07da6c
     1.1 --- a/src/audio/emscripten/SDL_emscriptenaudio.c	Tue Aug 02 13:38:56 2016 -0400
     1.2 +++ b/src/audio/emscripten/SDL_emscriptenaudio.c	Tue Aug 02 13:48:52 2016 -0400
     1.3 @@ -63,12 +63,10 @@
     1.4      int bytes = SDL_AUDIO_BITSIZE(this->spec.format) / 8;
     1.5      int bytes_in = SDL_AUDIO_BITSIZE(this->convert.src_format) / 8;
     1.6  
     1.7 -    /* Only do soemthing if audio is enabled */
     1.8 -    if (!this->enabled)
     1.9 +    /* Only do something if audio is enabled */
    1.10 +    if (!SDL_AtomicGet(&this->enabled) || SDL_AtomicGet(&this->paused)) {
    1.11          return;
    1.12 -
    1.13 -    if (this->paused)
    1.14 -        return;
    1.15 +    }
    1.16  
    1.17      if (this->convert.needed) {
    1.18          if (this->hidden->conv_in_len != 0) {