aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpatchanka <nicolas.peri@shivaengine.com>2014-02-23 17:02:11 +0100
committerpatchanka <nicolas.peri@shivaengine.com>2014-02-23 17:02:11 +0100
commit499b999bf5b89acd1f8e69c6128a3c02233c174b (patch)
treefaa6c08195fe836001c541947cbdfca3dc966a77 /src
parent6960d2296299e96d43e694806f5d35799ef8d39c (diff)
Changed alcOpenDevice so it works with Safari 6 and newer.
Diffstat (limited to 'src')
-rw-r--r--src/library_openal.js4
1 files changed, 2 insertions, 2 deletions
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;