src/audio/emscripten/SDL_emscriptenaudio.c
changeset 9831 6c7e2f0747f7
parent 9619 b94b6d0bff0f
child 9998 f67cf37e9cd4
     1.1 --- a/src/audio/emscripten/SDL_emscriptenaudio.c	Wed Aug 05 21:03:31 2015 +0200
     1.2 +++ b/src/audio/emscripten/SDL_emscriptenaudio.c	Wed Aug 05 21:04:10 2015 +0200
     1.3 @@ -263,6 +263,10 @@
     1.4          return 0;
     1.5      });
     1.6  
     1.7 +    if (!available) {
     1.8 +        SDL_SetError("No audio context available");
     1.9 +    }
    1.10 +
    1.11      return available;
    1.12  }
    1.13