aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-25 15:41:05 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-25 15:41:05 -0800
commit74e244046b058134f3e777ba3e2b0bc0166f6b54 (patch)
treefd18e0f3fc73c5d70a12895a0f0c61f9e0a0f2ff
parent7904517df3a5b85fedb735f3888b1bafad3c2d43 (diff)
parent5bf4d65b99039a8bad17d042bf9b8555c42d824a (diff)
Merge branch 'NiCoX' of github.com:patchanka/emscripten into incoming
Conflicts: AUTHORS
-rw-r--r--AUTHORS2
-rw-r--r--src/library_openal.js4
2 files changed, 4 insertions, 2 deletions
diff --git a/AUTHORS b/AUTHORS
index 6b548922..6aed0236 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -127,3 +127,5 @@ a license to everyone to use it as detailed in LICENSE.)
* Richard Janicek <r@janicek.co>
* Joel Croteau <jcroteau@gmail.com>
* Haneef Mubarak <haneef503@gmail.com>
+* Nicolas Peri <nicox@shivaengine.com> (copyright owned by ShiVa Technologies, SAS)
+
diff --git a/src/library_openal.js b/src/library_openal.js
index ac49fe95..bdbb2dca 100644
--- a/src/library_openal.js
+++ b/src/library_openal.js
@@ -174,8 +174,8 @@ var LibraryOpenAL = {
},
alcOpenDevice: function(deviceName) {
- if (typeof(AudioContext) == "function" ||
- typeof(webkitAudioContext) == "function") {
+ if (typeof(AudioContext) !== "undefined" ||
+ typeof(webkitAudioContext) !== "undefined") {
return 1; // non-null pointer -- we just simulate one device
} else {
return 0;