From 3f5a879e734b9724cddc5c2be348af56945893d9 Mon Sep 17 00:00:00 2001 From: Vaios Kalpias-Ilias Date: Thu, 25 Jun 2015 19:37:12 +0300 Subject: [PATCH] Do not use credentials for audio assets --- src/audio/audio_sound.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/audio/audio_sound.js b/src/audio/audio_sound.js index 9d647042728..4558b8a392a 100644 --- a/src/audio/audio_sound.js +++ b/src/audio/audio_sound.js @@ -7,7 +7,7 @@ pc.extend(pc, function () { Sound = function (manager, url, success, error) { this.buffer = null; this.isLoaded = false; - + if (!pc.AudioManager.isSupported(url, this.audio)) { setTimeout(function () { error(pc.string.format('Audio format for {0} not supported', url)); @@ -21,7 +21,8 @@ pc.extend(pc, function () { success(this); }.bind(this), error); }.bind(this), { - error: error + error: error, + withCredentials: false }); } }